mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fixup! refactor(Core/World): Move various worldstate related function… (#22119)
This commit is contained in:
@@ -1755,7 +1755,6 @@ void World::SetInitialWorldSettings()
|
|||||||
|
|
||||||
LOG_INFO("server.loading", "Loading WorldStates..."); // must be loaded before battleground, outdoor PvP and conditions
|
LOG_INFO("server.loading", "Loading WorldStates..."); // must be loaded before battleground, outdoor PvP and conditions
|
||||||
sWorldState->LoadWorldStates();
|
sWorldState->LoadWorldStates();
|
||||||
sWorldState->Load();
|
|
||||||
|
|
||||||
LOG_INFO("server.loading", "Loading Conditions...");
|
LOG_INFO("server.loading", "Loading Conditions...");
|
||||||
sConditionMgr->LoadConditions();
|
sConditionMgr->LoadConditions();
|
||||||
@@ -1880,6 +1879,9 @@ void World::SetInitialWorldSettings()
|
|||||||
uint32 nextGameEvent = sGameEventMgr->StartSystem();
|
uint32 nextGameEvent = sGameEventMgr->StartSystem();
|
||||||
_timers[WUPDATE_EVENTS].SetInterval(nextGameEvent); //depend on next event
|
_timers[WUPDATE_EVENTS].SetInterval(nextGameEvent); //depend on next event
|
||||||
|
|
||||||
|
LOG_INFO("server.loading", "Loading WorldState...");
|
||||||
|
sWorldState->Load(); // must be called after loading game events
|
||||||
|
|
||||||
// Delete all characters which have been deleted X days before
|
// Delete all characters which have been deleted X days before
|
||||||
Player::DeleteOldCharacters();
|
Player::DeleteOldCharacters();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user