summaryrefslogtreecommitdiff
path: root/src/net/eathena/vendinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-28 21:27:04 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-02 00:13:44 +0300
commitb6a0e05498b2b1a64d9b407fb2416dbaa0faf407 (patch)
tree7a1023dabcdf250e0983edff3ab1a2a14226f300 /src/net/eathena/vendinghandler.cpp
parent6930045257ca767dbfc095f95a440028d5b2213e (diff)
downloadplus-b6a0e05498b2b1a64d9b407fb2416dbaa0faf407.tar.gz
plus-b6a0e05498b2b1a64d9b407fb2416dbaa0faf407.tar.bz2
plus-b6a0e05498b2b1a64d9b407fb2416dbaa0faf407.tar.xz
plus-b6a0e05498b2b1a64d9b407fb2416dbaa0faf407.zip
eathena: add support for creating vending shop.
Diffstat (limited to 'src/net/eathena/vendinghandler.cpp')
-rw-r--r--src/net/eathena/vendinghandler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/eathena/vendinghandler.cpp b/src/net/eathena/vendinghandler.cpp
index 3228cf0db..54f1b74c1 100644
--- a/src/net/eathena/vendinghandler.cpp
+++ b/src/net/eathena/vendinghandler.cpp
@@ -24,6 +24,8 @@
#include "being/being.h"
+#include "listeners/vendingslotslistener.h"
+
#include "net/ea/eaprotocol.h"
#include "net/eathena/messageout.h"
@@ -92,7 +94,7 @@ void VendingHandler::handleMessage(Net::MessageIn &msg)
void VendingHandler::processOpenReq(Net::MessageIn &msg)
{
- msg.readInt16("slots allowed");
+ VendingSlotsListener::distributeEvent(msg.readInt16("slots allowed"));
}
void VendingHandler::processShowBoard(Net::MessageIn &msg)