summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp9
1 files changed, 7 insertions, 2 deletions
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;