summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-15 16:25:30 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-15 16:29:54 +0300
commitd8da9ebe28dc38fa9c7e5bd859913faa4460a25d (patch)
tree4d9387a169ca56b86725fb4165e554ddeb817395 /src/actions
parent77a52b24c88dd113a74ff55cecb63a7214193fdf (diff)
downloadmanaverse-d8da9ebe28dc38fa9c7e5bd859913faa4460a25d.tar.gz
manaverse-d8da9ebe28dc38fa9c7e5bd859913faa4460a25d.tar.bz2
manaverse-d8da9ebe28dc38fa9c7e5bd859913faa4460a25d.tar.xz
manaverse-d8da9ebe28dc38fa9c7e5bd859913faa4460a25d.zip
eathena: impliment packet SMSG_BUYINGSTORE_ITEMS_LIST.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index 6290c0d37..1e70a6540 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -71,6 +71,7 @@
#include "net/adminhandler.h"
#include "net/beinghandler.h"
+#include "net/buyingstorehandler.h"
#include "net/buysellhandler.h"
#include "net/chathandler.h"
#include "net/download.h"
@@ -638,7 +639,7 @@ impHandler(sell)
{
const std::string args = event.args;
Being *being = findBeing(args);
- if (!being)
+ if (!being && !serverFeatures->haveVending())
{
const std::set<std::string> &players = whoIsOnline->getOnlineNicks();
if (players.find(args) != players.end())
@@ -656,7 +657,10 @@ impHandler(sell)
}
else if (being->getType() == ActorType::Player)
{
- buySellHandler->requestBuyList(being->getName());
+ if (serverFeatures->haveVending())
+ buyingStoreHandler->open(being);
+ else
+ buySellHandler->requestBuyList(being->getName());
return true;
}
return false;