Core/Maps: Adjusted WorldObject::GetGridActivationRange() to never be less than map visibility distance for active objects to ensure equal ranges for activation/deactivation of grids
Updates #19072
This commit is contained in:
1 parent
159709e0b0
commit
9d4a1ddc10
2 files changed
+11
-21
No files matched your search
@@ -716,14 +716,9 @@ void Map::Update(const uint32 t_diff)
|
||||
|
||||
VisitNearbyCellsOf(player, grid_object_update, world_object_update);
|
||||
|
||||
// If player is using far sight, visit that object too
|
||||
// If player is using far sight or mind vision, visit that object too
|
||||
if (WorldObject* viewPoint = player->GetViewpoint())
|
||||
{
|
||||
if (Creature* viewCreature = viewPoint->ToCreature())
|
||||
VisitNearbyCellsOf(viewCreature, grid_object_update, world_object_update);
|
||||
else if (DynamicObject* viewObject = viewPoint->ToDynObject())
|
||||
VisitNearbyCellsOf(viewObject, grid_object_update, world_object_update);
|
||||
}
|
||||
VisitNearbyCellsOf(viewPoint, grid_object_update, world_object_update);
|
||||
|
||||
// Handle updates for creatures in combat with player and are more than 60 yards away
|
||||
if (player->IsInCombat())
|
||||
|
||||
Reference in new issue
Block a user