summaryrefslogtreecommitdiff
path: root/src/actions
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/actions
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/actions')
-rw-r--r--src/actions/actions.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index 844c91272..698d1f4f8 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -703,7 +703,7 @@ impHandler(buy)
return false;
const std::string args = event.args;
Being *being = findBeing(args, false);
- if (!being && !serverFeatures->haveVending())
+ if (!being && Net::getNetworkType() == ServerType::TMWATHENA)
{
if (whoIsOnline)
{
@@ -733,7 +733,7 @@ impHandler(buy)
}
else if (being->getType() == ActorType::Player)
{
- if (vendingHandler && serverFeatures->haveVending())
+ if (vendingHandler && Net::getNetworkType() == ServerType::EATHENA)
vendingHandler->open(being);
else if (buySellHandler)
buySellHandler->requestSellList(being->getName());
@@ -749,7 +749,7 @@ impHandler(sell)
const std::string args = event.args;
Being *being = findBeing(args, false);
- if (!being && !serverFeatures->haveVending())
+ if (!being && Net::getNetworkType() == ServerType::TMWATHENA)
{
if (whoIsOnline)
{
@@ -779,7 +779,7 @@ impHandler(sell)
}
else if (being->getType() == ActorType::Player)
{
- if (buyingStoreHandler && serverFeatures->haveVending())
+ if (buyingStoreHandler && Net::getNetworkType() == ServerType::EATHENA)
buyingStoreHandler->open(being);
else if (buySellHandler)
buySellHandler->requestBuyList(being->getName());