summaryrefslogtreecommitdiff
path: root/src/net/eathena/vendinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-07 12:10:11 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-07 12:10:11 +0300
commit8ea8b75484d4896e31a27975311e51455bb00150 (patch)
tree3fe04e84f011027216c2be1c7637feccd1e0d8c9 /src/net/eathena/vendinghandler.cpp
parent291f73098e52742bed3f4c4271524e347ee317e1 (diff)
downloadmanaplus-8ea8b75484d4896e31a27975311e51455bb00150.tar.gz
manaplus-8ea8b75484d4896e31a27975311e51455bb00150.tar.bz2
manaplus-8ea8b75484d4896e31a27975311e51455bb00150.tar.xz
manaplus-8ea8b75484d4896e31a27975311e51455bb00150.zip
eathena: add partial support for packet SMSG_VENDING_OPEN_REQ 0x012d.
Diffstat (limited to 'src/net/eathena/vendinghandler.cpp')
-rw-r--r--src/net/eathena/vendinghandler.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/vendinghandler.cpp b/src/net/eathena/vendinghandler.cpp
index ea9ddeda6..d38f2d102 100644
--- a/src/net/eathena/vendinghandler.cpp
+++ b/src/net/eathena/vendinghandler.cpp
@@ -34,6 +34,7 @@ VendingHandler::VendingHandler() :
{
static const uint16_t _messages[] =
{
+ SMSG_VENDING_OPEN_REQ,
0
};
handledMessages = _messages;
@@ -44,9 +45,18 @@ void VendingHandler::handleMessage(Net::MessageIn &msg)
{
switch (msg.getId())
{
+ case SMSG_VENDING_OPEN_REQ:
+ processOpenReq(msg);
+ break;
+
default:
break;
}
}
+void VendingHandler::processOpenReq(Net::MessageIn &msg)
+{
+ msg.readInt16("slots allowed");
+}
+
} // namespace EAthena