feat(Core/Grids): Remove WorldObject separation in grid containers (#22595)
This commit is contained in:
parent
c97cee1e4f
commit
73317b2706
63 changed files with 160 additions and 313 deletions
|
|
@ -1601,13 +1601,13 @@ void Player::UpdateVisibilityForPlayer(bool mapChange)
|
|||
Acore::VisibleNotifier notifierNoLarge(
|
||||
*this, mapChange,
|
||||
false); // visit only objects which are not large; default distance
|
||||
Cell::VisitAllObjects(m_seer, notifierNoLarge,
|
||||
Cell::VisitObjects(m_seer, notifierNoLarge,
|
||||
GetSightRange() + VISIBILITY_INC_FOR_GOBJECTS);
|
||||
notifierNoLarge.SendToSelf();
|
||||
|
||||
Acore::VisibleNotifier notifierLarge(
|
||||
*this, mapChange, true); // visit only large objects; maximum distance
|
||||
Cell::VisitAllObjects(m_seer, notifierLarge, GetSightRange());
|
||||
Cell::VisitObjects(m_seer, notifierLarge, GetSightRange());
|
||||
notifierLarge.SendToSelf();
|
||||
|
||||
if (mapChange)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue