summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-01 20:11:13 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-01 20:11:13 +0300
commitd9be3eb4cf0ebbe29ef93759a3d168ebe9e592c1 (patch)
treecf04cf0aeaaa854eacf8718d80c2ad863c24ebb5 /src/gui/windows
parentf06f491e3f9a5c47b98ec136c8eee7789152ce32 (diff)
downloadplus-d9be3eb4cf0ebbe29ef93759a3d168ebe9e592c1.tar.gz
plus-d9be3eb4cf0ebbe29ef93759a3d168ebe9e592c1.tar.bz2
plus-d9be3eb4cf0ebbe29ef93759a3d168ebe9e592c1.tar.xz
plus-d9be3eb4cf0ebbe29ef93759a3d168ebe9e592c1.zip
Remove ServerFeatures haveVending because it depend only on server type.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/shopwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp
index 0de38a084..28260ce92 100644
--- a/src/gui/windows/shopwindow.cpp
+++ b/src/gui/windows/shopwindow.cpp
@@ -70,6 +70,7 @@
#endif // TMWA_SUPPORT
#include "net/buyingstorehandler.h"
#include "net/vendinghandler.h"
+#include "net/net.h"
#include "net/serverfeatures.h"
#ifdef TMWA_SUPPORT
#include "net/tradehandler.h"
@@ -140,7 +141,7 @@ ShopWindow::ShopWindow() :
mSellShopSize(0),
mBuyShopSize(0),
isBuySelected(true),
- mHaveVending(serverFeatures->haveVending()),
+ mHaveVending(Net::getNetworkType() == ServerType::EATHENA),
mEnableBuyingStore(false),
mEnableVending(false)
{