summaryrefslogtreecommitdiff
path: root/src/actions/windows.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-01 18:57:55 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-01 18:57:55 +0300
commit3c39535b77209f4afda43b689999a7e61a1e163b (patch)
tree1c3aedaf604710264e9b6c9b6d9a834d56a74f57 /src/actions/windows.cpp
parent24b60886fd34770af1b97a36df72c58c4f73539f (diff)
downloadmanaplus-3c39535b77209f4afda43b689999a7e61a1e163b.tar.gz
manaplus-3c39535b77209f4afda43b689999a7e61a1e163b.tar.bz2
manaplus-3c39535b77209f4afda43b689999a7e61a1e163b.tar.xz
manaplus-3c39535b77209f4afda43b689999a7e61a1e163b.zip
Remove ServerFeatures haveBankApi because it depend only on server type.
Diffstat (limited to 'src/actions/windows.cpp')
-rw-r--r--src/actions/windows.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/actions/windows.cpp b/src/actions/windows.cpp
index 9d29b043c..c135ab541 100644
--- a/src/actions/windows.cpp
+++ b/src/actions/windows.cpp
@@ -51,6 +51,7 @@
#include "utils/gettext.h"
+#include "net/net.h"
#include "net/serverfeatures.h"
#include "debug.h"
@@ -266,8 +267,10 @@ impHandler0(questsWindowShow)
impHandler0(bankWindowShow)
{
- if (!serverFeatures || !serverFeatures->haveBankApi())
+#ifdef TMWA_SUPPORT
+ if (Net::getNetworkType() == ServerType::TMWATHENA)
return false;
+#endif // TMWA_SUPPORT
showHideWindow(bankWindow);
return true;