From 601607488ae529b7dfd9bd55afd0e89e42762281 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 28 Oct 2014 19:19:02 +0300 Subject: Dehardcode default spells/commands. Read commands from defaultcommands.xml. Also improve a bit saving commands in spellmanager. --- src/client.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client.cpp') 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(); -- cgit v1.2.3-70-g09d2