summaryrefslogtreecommitdiff
path: root/src/net/eathena/vendinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-07 13:50:36 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-07 13:50:36 +0300
commit29a7ea1d119f87b381dc36c5be3726dbd3fae92d (patch)
tree3c0b01f33b827b8713935e5e6b1f927b0ea9693a /src/net/eathena/vendinghandler.cpp
parentc8f7c0f5b8acdf1b1ecf48501f9468c378486d8c (diff)
downloadmanaplus-29a7ea1d119f87b381dc36c5be3726dbd3fae92d.tar.gz
manaplus-29a7ea1d119f87b381dc36c5be3726dbd3fae92d.tar.bz2
manaplus-29a7ea1d119f87b381dc36c5be3726dbd3fae92d.tar.xz
manaplus-29a7ea1d119f87b381dc36c5be3726dbd3fae92d.zip
eathena: add partial support for packet SMSG_VENDING_REPORT 0x0137.
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 8f02e4f72..991bcdf10 100644
--- a/src/net/eathena/vendinghandler.cpp
+++ b/src/net/eathena/vendinghandler.cpp
@@ -74,6 +74,10 @@ void VendingHandler::handleMessage(Net::MessageIn &msg)
processOpen(msg);
break;
+ case SMSG_VENDING_REPORT:
+ processReport(msg);
+ break;
+
default:
break;
}
@@ -141,4 +145,10 @@ void VendingHandler::processOpen(Net::MessageIn &msg)
}
}
+void VendingHandler::processReport(Net::MessageIn &msg)
+{
+ msg.readInt16("inv index");
+ msg.readInt16("amount");
+}
+
} // namespace EAthena