feat(Core/Load): Add debug logs for zone and area assignment (#22509)

This commit is contained in:
Kitzunu
2025-07-24 21:21:05 +02:00
committed by GitHub
parent 250bc557f4
commit dc3d2def80
2 changed files with 10 additions and 2 deletions

View File

@@ -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)