summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-28 19:19:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-28 19:19:02 +0300
commit601607488ae529b7dfd9bd55afd0e89e42762281 (patch)
tree0006e7c0f7546452037362a10750f3f17e1924aa /src/client.cpp
parentb29b80ccc9a22d8d4b3acf4b251bc2388b82027f (diff)
downloadplus-601607488ae529b7dfd9bd55afd0e89e42762281.tar.gz
plus-601607488ae529b7dfd9bd55afd0e89e42762281.tar.bz2
plus-601607488ae529b7dfd9bd55afd0e89e42762281.tar.xz
plus-601607488ae529b7dfd9bd55afd0e89e42762281.zip
Dehardcode default spells/commands.
Read commands from defaultcommands.xml. Also improve a bit saving commands in spellmanager.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 690c2b434..8a6f885c7 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -39,6 +39,7 @@
#include "party.h"
#include "settings.h"
#include "soundmanager.h"
+#include "spellshortcut.h"
#include "statuseffect.h"
#include "units.h"
#include "touchmanager.h"
@@ -1243,6 +1244,9 @@ int Client::gameExec()
TranslationManager::loadCurrentLang();
PlayerInfo::stateChange(mState);
+ spellManager = new SpellManager;
+ spellShortcut = new SpellShortcut;
+
// Load XML databases
CharDB::load();
DeadDB::load();