1
This commit is contained in:
parent
5c7a597db5
commit
81bb49b96a
@ -131,6 +131,10 @@ void RoomObstacle::ActiveTimerFunc()
|
|||||||
|
|
||||||
void RoomObstacle::UpdateTimerFunc()
|
void RoomObstacle::UpdateTimerFunc()
|
||||||
{
|
{
|
||||||
|
if (!grid_list_) {
|
||||||
|
grid_list_ = new std::set<GridCell*>();
|
||||||
|
room->grid_service->GetAllCellsByXy(room, GetPos().x, GetPos().y, *grid_list_);
|
||||||
|
}
|
||||||
if (grid_list_ && master.Get() && !IsDead(room)) {
|
if (grid_list_ && master.Get() && !IsDead(room)) {
|
||||||
std::set<Human*> human_list;
|
std::set<Human*> human_list;
|
||||||
room->grid_service->TraverseAllLayerHumanList
|
room->grid_service->TraverseAllLayerHumanList
|
||||||
|
Loading…
x
Reference in New Issue
Block a user