From 0c1c6b5df196443b18e9e0ef2e9ef3de350a7234 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 May 2017 18:43:49 +0300 Subject: Fix wrong checks after removing some server features. --- src/actions/actions.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/actions') diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 698d1f4f8..eaf0da026 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -733,7 +733,7 @@ impHandler(buy) } else if (being->getType() == ActorType::Player) { - if (vendingHandler && Net::getNetworkType() == ServerType::EATHENA) + if (vendingHandler && Net::getNetworkType() != ServerType::TMWATHENA) vendingHandler->open(being); else if (buySellHandler) buySellHandler->requestSellList(being->getName()); @@ -779,10 +779,15 @@ impHandler(sell) } else if (being->getType() == ActorType::Player) { - if (buyingStoreHandler && Net::getNetworkType() == ServerType::EATHENA) + if (buyingStoreHandler && + Net::getNetworkType() != ServerType::TMWATHENA) + { buyingStoreHandler->open(being); + } else if (buySellHandler) + { buySellHandler->requestBuyList(being->getName()); + } return true; } return false; -- cgit v1.2.3-70-g09d2