From ab7405f94e8959d91ef1500a14b97218976bd8db Mon Sep 17 00:00:00 2001 From: sudlud Date: Tue, 30 Apr 2024 11:56:17 +0200 Subject: [PATCH] fix(Core/Map): remove hackfix that blocked update of GOs beeing set active (#18812) - this just broke the whole purpose of setActive(true) if the gameobjects is still not really beeing set active afterwards - GetGridActivationRange() returns 0.0f for gameobjects anyways - so CalculateCellArea() will result in the minimal cell area around the gameobject's position - if the cell around the gameobject should not be updated, the gameobject should not have been set active in the first place --- src/server/game/Maps/Map.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index 8eecf7ced1f3c3..16d062894f4b14 100644 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -702,9 +702,6 @@ void Map::VisitNearbyCellsOf(WorldObject* obj, TypeContainerVisitorIsPositionValid()) return; - if (obj->GetGridActivationRange() <= 0.0f) // pussywizard: gameobjects for example are on active lists, but range is equal to 0 (they just prevent grid unloading) - return; - // Update mobs/objects in ALL visible cells around object! CellArea area = Cell::CalculateCellArea(obj->GetPositionX(), obj->GetPositionY(), obj->GetGridActivationRange());