1
This commit is contained in:
parent
0f0fcf40ca
commit
8beb2baf63
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user