From e02996049927ca4f52852fe0e437010fd07238a3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 Mar 2013 00:44:18 +0300 Subject: remove some code from deprivatedevent class. --- src/game.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index ac22d8724..1ab3cb10e 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -169,9 +169,6 @@ const unsigned adjustDelay = 10; */ static void initEngines() { - DepricatedEvent::trigger(CHANNEL_GAME, - DepricatedEvent(EVENT_ENGINESINITALIZING)); - actorSpriteManager = new ActorSpriteManager; commandHandler = new CommandHandler; effectManager = new EffectManager; @@ -194,9 +191,6 @@ static void initEngines() */ static void createGuiWindows() { - DepricatedEvent::trigger(CHANNEL_GAME, - DepricatedEvent(EVENT_GUIWINDOWSLOADING)); - if (setupWindow) setupWindow->clearWindowsForReset(); @@ -371,9 +365,6 @@ static void destroyGuiWindows() del_0(killStats); del_0(didYouKnowWindow); - DepricatedEvent::trigger(CHANNEL_GAME, - DepricatedEvent(EVENT_GUIWINDOWSUNLOADED)); - if (auctionManager && AuctionManager::getEnableAuctionBot()) auctionManager->reload(); @@ -443,9 +434,6 @@ Game::Game(): if (guildManager && GuildManager::getEnableGuildBot()) guildManager->requestGuildInfo(); - - DepricatedEvent::trigger(CHANNEL_GAME, - DepricatedEvent(EVENT_CONSTRUCTED)); } Game::~Game() @@ -476,8 +464,7 @@ Game::~Game() Being::clearCache(); mInstance = nullptr; - DepricatedEvent::trigger(CHANNEL_GAME, - DepricatedEvent(EVENT_DESTRUCTED)); + PlayerInfo::gameDestroyed(); } bool Game::createScreenshot() -- cgit v1.2.3-70-g09d2