This commit is contained in:
aozhiwei 2019-11-29 18:51:25 +08:00
parent 0f0fcf40ca
commit 8beb2baf63

View File

@ -81,6 +81,7 @@ void GridService::GetAllCellsByXy(int x, int y, std::set<GridCell*>& 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)