diff options
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()); |