From 8beb2baf63fcfd4f5054cc3b954b8f78e8399d98 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 29 Nov 2019 18:51:25 +0800 Subject: [PATCH] 1 --- server/gameserver/gridservice.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/gameserver/gridservice.cc b/server/gameserver/gridservice.cc index 8acb07c..096bae8 100644 --- a/server/gameserver/gridservice.cc +++ b/server/gameserver/gridservice.cc @@ -81,6 +81,7 @@ void GridService::GetAllCellsByXy(int x, int y, std::set& grid_list) void GridService::AddHuman(Human* hum) { + #if 0 int x = (int)hum->pos.x + cell_width_; int y = (int)hum->pos.y + cell_width_; if (BroderOverFlow(x, y)) { @@ -92,6 +93,7 @@ void GridService::AddHuman(Human* hum) } cells_[hum->grid_id].human_list.insert(hum); GetAllCells(hum->grid_id, hum->grid_list); + #endif } void GridService::MoveHuman(Human* hum)