summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-28 02:11:46 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-28 02:11:46 +0300
commit83dc7593205d7d076fc38d307e2964a57157defc (patch)
tree9547fcd7e6f8c68bb632771f19d1b1946c691e58 /src/game.cpp
parent1b719ca0b81e3c5df44ef8280255995418a2ec70 (diff)
downloadplus-83dc7593205d7d076fc38d307e2964a57157defc.tar.gz
plus-83dc7593205d7d076fc38d307e2964a57157defc.tar.bz2
plus-83dc7593205d7d076fc38d307e2964a57157defc.tar.xz
plus-83dc7593205d7d076fc38d307e2964a57157defc.zip
Revert "Remove auction bot support."
This reverts commit 0b236e4e04a6d89d34925ce9d2875c002e135b23.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index da60f114b..7c5138c7d 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -25,6 +25,7 @@
#include "main.h"
#include "actorspritemanager.h"
+#include "auctionmanager.h"
#include "animatedsprite.h"
#include "client.h"
#include "commandhandler.h"
@@ -151,6 +152,7 @@ EffectManager *effectManager = nullptr;
SpellManager *spellManager = nullptr;
Viewport *viewport = nullptr; /**< Viewport on the map. */
GuildManager *guildManager = nullptr;
+AuctionManager *auctionManager = nullptr;
ChatTab *localChatTab = nullptr;
ChatTab *debugChatTab = nullptr;
@@ -172,6 +174,7 @@ static void initEngines()
actorSpriteManager = new ActorSpriteManager;
commandHandler = new CommandHandler;
effectManager = new EffectManager;
+ AuctionManager::init();
GuildManager::init();
particleEngine = new Particle(nullptr);
@@ -328,6 +331,9 @@ static void destroyGuiWindows()
if (whoIsOnline)
whoIsOnline->setAllowUpdate(false);
+ if (auctionManager)
+ auctionManager->clear();
+
if (guildManager)
guildManager->clear();
@@ -369,6 +375,9 @@ static void destroyGuiWindows()
DepricatedEvent::trigger(CHANNEL_GAME,
DepricatedEvent(EVENT_GUIWINDOWSUNLOADED));
+ if (auctionManager && AuctionManager::getEnableAuctionBot())
+ auctionManager->reload();
+
if (guildManager && GuildManager::getEnableGuildBot())
guildManager->reload();
}
@@ -460,6 +469,7 @@ Game::~Game()
del_0(mCurrentMap)
del_0(spellManager)
del_0(spellShortcut)
+ del_0(auctionManager)
del_0(guildManager)
#ifdef USE_MUMBLE
del_0(mumbleManager)