summaryrefslogtreecommitdiff
path: root/src/server/game/Globals/ObjectMgr.cpp
diff options
context:
space:
mode:
authorKitzunu <24550914+Kitzunu@users.noreply.github.com>2025-07-24 21:21:05 +0200
committerGitHub <noreply@github.com>2025-07-24 16:21:05 -0300
commitdc3d2def809499d5a3df75f65b84bf072b1bde84 (patch)
tree1ae31203db29453d9f902fe5183e23a491f96945 /src/server/game/Globals/ObjectMgr.cpp
parent250bc557f41abccb15f7fd18ea39bb5e1ed07f97 (diff)
feat(Core/Load): Add debug logs for zone and area assignment (#22509)
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rw-r--r--src/server/game/Globals/ObjectMgr.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index 940f0b2224..911749df0c 100644
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -2257,6 +2257,9 @@ void ObjectMgr::LoadCreatures()
return;
}
+ if (sWorld->getBoolConfig(CONFIG_CALCULATE_CREATURE_ZONE_AREA_DATA))
+ LOG_INFO("server.loading", "Calculating zone and area fields. This may take a moment...");
+
// Build single time for check spawnmask
std::map<uint32, uint32> spawnMasks;
for (uint32 i = 0; i < sMapStore.GetNumRows(); ++i)
@@ -2621,6 +2624,9 @@ void ObjectMgr::LoadGameobjects()
return;
}
+ if (sWorld->getBoolConfig(CONFIG_CALCULATE_GAMEOBJECT_ZONE_AREA_DATA))
+ LOG_INFO("server.loading", "Calculating zone and area fields. This may take a moment...");
+
// build single time for check spawnmask
std::map<uint32, uint32> spawnMasks;
for (uint32 i = 0; i < sMapStore.GetNumRows(); ++i)