diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-01 18:57:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-01 18:57:55 +0300 |
commit | 3c39535b77209f4afda43b689999a7e61a1e163b (patch) | |
tree | 1c3aedaf604710264e9b6c9b6d9a834d56a74f57 /src/actions/windows.cpp | |
parent | 24b60886fd34770af1b97a36df72c58c4f73539f (diff) | |
download | plus-3c39535b77209f4afda43b689999a7e61a1e163b.tar.gz plus-3c39535b77209f4afda43b689999a7e61a1e163b.tar.bz2 plus-3c39535b77209f4afda43b689999a7e61a1e163b.tar.xz plus-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.cpp | 5 |
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; |