mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
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
This commit is contained in:
@@ -702,9 +702,6 @@ void Map::VisitNearbyCellsOf(WorldObject* obj, TypeContainerVisitor<Acore::Objec
|
||||
if (!obj->IsPositionValid())
|
||||
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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user