diff options
| author | leak <leakzx@googlemail.com> | 2011-03-10 22:21:50 +0100 |
|---|---|---|
| committer | leak <leakzx@googlemail.com> | 2011-03-10 22:22:29 +0100 |
| commit | b6074f90daf344d88471f8875dbea3fd3ccaee7d (patch) | |
| tree | b16f29d59ef6bef577549ef580c537440c0db734 /src/server/game/World | |
| parent | 5b481d36bf1ad4789f8ae664c59b96beea7684c9 (diff) | |
Core: Cleaned up leftovers from loading functions streamlining
Diffstat (limited to 'src/server/game/World')
| -rwxr-xr-x | src/server/game/World/World.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp index 9ca9db17d1c..be7c17ba582 100755 --- a/src/server/game/World/World.cpp +++ b/src/server/game/World/World.cpp @@ -1218,6 +1218,12 @@ void World::SetInitialWorldSettings() exit(1); } + ///- Initialize pool manager + sPoolMgr->Initialize(); + + ///- Initialize game event manager + sGameEventMgr->Initialize(); + ///- Loading strings. Getting no records means core load has to be canceled because no error message can be output. sLog->outString(); sLog->outString("Loading Trinity strings..."); @@ -1373,10 +1379,7 @@ void World::SetInitialWorldSettings() sObjectMgr->LoadGameobjectRespawnTimes(); sLog->outString("Loading Creature Linked Respawn..."); - sObjectMgr->LoadLinkedRespawn(); // must be after LoadCreatures(), LoadGameObjects() - - sLog->outString("Loading Objects Pooling Data..."); // TODOLEAK: scope - sPoolMgr->LoadFromDB(); + sObjectMgr->LoadLinkedRespawn(); // must be after LoadCreatures(), LoadGameObjects() sLog->outString("Loading Weather Data..."); sWeatherMgr->LoadWeatherData(); @@ -1393,11 +1396,11 @@ void World::SetInitialWorldSettings() sLog->outString("Loading Quests Relations..."); sObjectMgr->LoadQuestRelations(); // must be after quest load - sLog->outString("Loading Quest Pooling Data..."); - sPoolMgr->LoadQuestPools(); + sLog->outString("Loading Objects Pooling Data..."); + sPoolMgr->LoadFromDB(); sLog->outString("Loading Game Event Data..."); // must be after loading pools fully - sGameEventMgr->LoadFromDB(); // TODOLEAK: add scopes + sGameEventMgr->LoadFromDB(); sLog->outString("Loading UNIT_NPC_FLAG_SPELLCLICK Data..."); // must be after LoadQuests sObjectMgr->LoadNPCSpellClickSpells(); @@ -1474,7 +1477,7 @@ void World::SetInitialWorldSettings() sObjectMgr->LoadMailLevelRewards(); // Loot tables - LoadLootTables(); //TODOLEAK: untangle that shit + LoadLootTables(); sLog->outString("Loading Skill Discovery Table..."); LoadSkillDiscoveryTable(); @@ -1605,7 +1608,7 @@ void World::SetInitialWorldSettings() sCreatureTextMgr->LoadCreatureTexts(); sLog->outString("Initializing Scripts..."); - sScriptMgr->Initialize(); //LEAKTODO + sScriptMgr->Initialize(); sLog->outString("Validating spell scripts..."); sObjectMgr->ValidateSpellScripts(); @@ -1662,7 +1665,7 @@ void World::SetInitialWorldSettings() sMapMgr->Initialize(); sLog->outString("Starting Game Event system..."); - uint32 nextGameEvent = sGameEventMgr->Initialize(); + uint32 nextGameEvent = sGameEventMgr->StartSystem(); m_timers[WUPDATE_EVENTS].SetInterval(nextGameEvent); //depend on next event // Delete all characters which have been deleted X days before @@ -1697,9 +1700,6 @@ void World::SetInitialWorldSettings() sLog->outString("Deleting expired bans..."); LoginDatabase.Execute("DELETE FROM ip_banned WHERE unbandate <= UNIX_TIMESTAMP() AND unbandate<>bandate"); - sLog->outString("Starting objects Pooling system..."); - sPoolMgr->Initialize(); - sLog->outString("Calculate next daily quest reset time..."); InitDailyQuestResetTime(); |
