Core/BattlegroundMap: Load all cells when created & mark all creatures as active

Port From (https://github.com/TrinityCore/TrinityCore/commit/e72bde5236d41a7f66abb25ce9e118eeb1c5aa92)
This commit is contained in:
hondacrx
2024-02-03 11:15:25 -05:00
parent 7557fac40c
commit 226e12890e
5 changed files with 27 additions and 0 deletions
+4
View File
@@ -97,6 +97,10 @@ namespace Game.Entities
Cypher.Assert(map.IsBattlegroundOrArena());
map.SetBG(bg);
bg.SetBgMap(map);
if (WorldConfig.GetBoolValue(WorldCfg.BattlegroundMapLoadGrids))
map.LoadAllCells();
return map;
}