summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-06 15:11:30 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-06 15:11:30 +0300
commitf7c9165e0f59a33404a486c0b154a2c21ed9a9fa (patch)
tree4b2ed9168a0459bc1d0a06c0db0fe5df73e0a19e /src/game.cpp
parentc53f4620bdaa1ae3fe0a15aa237ea88d28da0954 (diff)
downloadmv-f7c9165e0f59a33404a486c0b154a2c21ed9a9fa.tar.gz
mv-f7c9165e0f59a33404a486c0b154a2c21ed9a9fa.tar.bz2
mv-f7c9165e0f59a33404a486c0b154a2c21ed9a9fa.tar.xz
mv-f7c9165e0f59a33404a486c0b154a2c21ed9a9fa.zip
Move specials window to manaserv only code.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index a564cd4b2..77a95120d 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -35,6 +35,7 @@
#include "localplayer.h"
#include "logger.h"
#include "particle.h"
+#include "playerinfo.h"
#include "sound.h"
#include "spellshortcut.h"
@@ -54,7 +55,9 @@
#include "gui/shopwindow.h"
#include "gui/shortcutwindow.h"
#include "gui/socialwindow.h"
+#ifdef MANASERV_SUPPORT
#include "gui/specialswindow.h"
+#endif
#include "gui/skilldialog.h"
#include "gui/statuswindow.h"
#include "gui/textdialog.h"
@@ -123,7 +126,9 @@ DebugWindow *debugWindow = nullptr;
ShortcutWindow *itemShortcutWindow = nullptr;
ShortcutWindow *emoteShortcutWindow = nullptr;
OutfitWindow *outfitWindow = nullptr;
+#ifdef MANASERV_SUPPORT
SpecialsWindow *specialsWindow = nullptr;
+#endif
ShortcutWindow *dropShortcutWindow = nullptr;
ShortcutWindow *spellShortcutWindow = nullptr;
WhoIsOnline *whoIsOnline = nullptr;
@@ -226,7 +231,9 @@ static void createGuiWindows()
emoteShortcutWindow = new ShortcutWindow("EmoteShortcut",
new EmoteShortcutContainer, "emotes.xml");
outfitWindow = new OutfitWindow();
+#ifdef MANASERV_SUPPORT
specialsWindow = new SpecialsWindow();
+#endif
dropShortcutWindow = new ShortcutWindow("DropShortcut",
new DropShortcutContainer, "drops.xml");
@@ -328,7 +335,9 @@ static void destroyGuiWindows()
del_0(itemShortcutWindow)
del_0(emoteShortcutWindow)
del_0(outfitWindow)
+#ifdef MANASERV_SUPPORT
del_0(specialsWindow)
+#endif
del_0(socialWindow)
del_0(dropShortcutWindow);
del_0(spellShortcutWindow);