diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-14 12:32:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-14 12:32:04 +0300 |
commit | 33fa397fd5b560afde5a876a99acc2b2546d1d44 (patch) | |
tree | b38470466dc9cc9f7da0b197346075b9062343c0 /src | |
parent | bb631b982a2f9b35e8009c3e76c4445ea3fda460 (diff) | |
download | ManaVerse-33fa397fd5b560afde5a876a99acc2b2546d1d44.tar.gz ManaVerse-33fa397fd5b560afde5a876a99acc2b2546d1d44.tar.bz2 ManaVerse-33fa397fd5b560afde5a876a99acc2b2546d1d44.tar.xz ManaVerse-33fa397fd5b560afde5a876a99acc2b2546d1d44.zip |
Allow use chat commands before connecting to server.
Diffstat (limited to 'src')
-rw-r--r-- | src/client.cpp | 2 | ||||
-rw-r--r-- | src/game.cpp | 2 | ||||
-rw-r--r-- | src/gui/windowmanager.cpp | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp index 0631b661c..75de57bbe 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -26,6 +26,7 @@ #include "auctionmanager.h" #include "chatlogger.h" +#include "commandhandler.h" #include "configmanager.h" #include "configuration.h" #include "dirs.h" @@ -600,6 +601,7 @@ void Client::gameClear() delete2(setupWindow); delete2(helpWindow); delete2(didYouKnowWindow); + delete2(commandHandler); stopTimers(); diff --git a/src/game.cpp b/src/game.cpp index 4e2977232..bca5813c1 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -140,7 +140,6 @@ const unsigned adjustDelay = 10; static void initEngines() { actorManager = new ActorManager; - commandHandler = new CommandHandler; effectManager = new EffectManager; AuctionManager::init(); GuildManager::init(); @@ -427,7 +426,6 @@ Game::~Game() delete2(actorManager) if (client->getState() != STATE_CHANGE_MAP) delete2(localPlayer) - delete2(commandHandler) delete2(effectManager) delete2(particleEngine) delete2(viewport) diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index 9c08f385e..4ed20e980 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -23,6 +23,7 @@ #include "gui/windowmanager.h" #include "client.h" +#include "commandhandler.h" #include "configuration.h" #include "game.h" #include "settings.h" @@ -90,6 +91,7 @@ void WindowManager::createWindows() helpWindow = new HelpWindow; didYouKnowWindow = new DidYouKnowWindow; didYouKnowWindow->postInit(); + commandHandler = new CommandHandler; } void WindowManager::initTitle() |