diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-01 20:11:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-01 20:11:13 +0300 |
commit | d9be3eb4cf0ebbe29ef93759a3d168ebe9e592c1 (patch) | |
tree | cf04cf0aeaaa854eacf8718d80c2ad863c24ebb5 /src/actions/actions.cpp | |
parent | f06f491e3f9a5c47b98ec136c8eee7789152ce32 (diff) | |
download | plus-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/actions.cpp')
-rw-r--r-- | src/actions/actions.cpp | 8 |
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()); |