diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-10-05 23:28:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-10-06 19:02:03 +0300 |
commit | 491695e60e95668e8170e290388f976190859314 (patch) | |
tree | 78f81f3a7326c6c5400879927e033718e031e43b /src/gui | |
parent | 51c5857be425d0cf19503ba47eba31fab4aceee6 (diff) | |
download | manaverse-491695e60e95668e8170e290388f976190859314.tar.gz manaverse-491695e60e95668e8170e290388f976190859314.tar.bz2 manaverse-491695e60e95668e8170e290388f976190859314.tar.xz manaverse-491695e60e95668e8170e290388f976190859314.zip |
remove extra includes if build without tmwa support.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/popups/itempopup.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/buydialog.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/charselectdialog.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/textcommandeditor.cpp | 6 | ||||
-rw-r--r-- | src/gui/windows/whoisonline.cpp | 4 |
5 files changed, 13 insertions, 3 deletions
diff --git a/src/gui/popups/itempopup.cpp b/src/gui/popups/itempopup.cpp index eedead83d..28de3b641 100644 --- a/src/gui/popups/itempopup.cpp +++ b/src/gui/popups/itempopup.cpp @@ -35,7 +35,9 @@ #include "gui/widgets/textbox.h" #include "net/beinghandler.h" +#ifdef TMWA_SUPPORT #include "net/net.h" +#endif // TMWA_SUPPORT #include "utils/foreach.h" #include "utils/gettext.h" diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp index fe980dd33..db1dc6e50 100644 --- a/src/gui/windows/buydialog.cpp +++ b/src/gui/windows/buydialog.cpp @@ -30,7 +30,9 @@ #include "enums/gui/layouttype.h" #include "gui/windows/setupwindow.h" +#ifdef TMWA_SUPPORT #include "gui/windows/tradewindow.h" +#endif // TMWA_SUPPORT #include "gui/models/shopitems.h" #include "gui/models/sortlistmodelbuy.h" diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp index 39ceaef64..5a0a02acb 100644 --- a/src/gui/windows/charselectdialog.cpp +++ b/src/gui/windows/charselectdialog.cpp @@ -45,7 +45,9 @@ #include "net/character.h" #include "net/charserverhandler.h" #include "net/logindata.h" +#ifdef TMWA_SUPPORT #include "net/net.h" +#endif // TMWA_SUPPORT #include "net/serverfeatures.h" #include "utils/foreach.h" diff --git a/src/gui/windows/textcommandeditor.cpp b/src/gui/windows/textcommandeditor.cpp index 5c8ee1357..88d88af8a 100644 --- a/src/gui/windows/textcommandeditor.cpp +++ b/src/gui/windows/textcommandeditor.cpp @@ -28,7 +28,6 @@ #include "input/keyboardconfig.h" #include "gui/models/iconsmodel.h" -#include "gui/models/magicschoolmodel.h" #include "gui/models/targettypemodel.h" #include "gui/widgets/button.h" @@ -37,7 +36,12 @@ #include "gui/widgets/inttextfield.h" #include "gui/widgets/label.h" #include "gui/widgets/layoutcell.h" + +#ifdef TMWA_SUPPORT +#include "gui/models/magicschoolmodel.h" + #include "gui/widgets/radiobutton.h" +#endif // TMWA_SUPPORT #include "utils/delete2.h" diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp index 35d930c4c..e123d3941 100644 --- a/src/gui/windows/whoisonline.cpp +++ b/src/gui/windows/whoisonline.cpp @@ -59,9 +59,9 @@ #include "utils/gettext.h" #include "utils/sdlhelper.h" +#ifdef TMWA_SUPPORT #include "net/net.h" - -#ifndef TMWA_SUPPORT +#else // TMWA_SUPPORT #include <curl/curl.h> #endif // TMWA_SUPPORT |