*Start game event system before init bg and opvp in case that bg and opvp needs to start some game events.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-30 14:48:13 -05:00
parent b3efef3cfe
commit 1a857d382a

View File

@@ -1521,6 +1521,10 @@ void World::SetInitialWorldSettings()
sLog.outString( "Starting Map System" );
MapManager::Instance().Initialize();
sLog.outString("Starting Game Event system..." );
uint32 nextGameEvent = gameeventmgr.Initialize();
m_timers[WUPDATE_EVENTS].SetInterval(nextGameEvent); //depend on next event
///- Initialize Battlegrounds
sLog.outString( "Starting BattleGround System" );
sBattleGroundMgr.CreateInitialBattleGrounds();
@@ -1546,10 +1550,6 @@ void World::SetInitialWorldSettings()
sLog.outString("Starting objects Pooling system..." );
poolhandler.Initialize();
sLog.outString("Starting Game Event system..." );
uint32 nextGameEvent = gameeventmgr.Initialize();
m_timers[WUPDATE_EVENTS].SetInterval(nextGameEvent); //depend on next event
sLog.outString("Initialize AuctionHouseBot...");
AuctionHouseBotInit();