diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-23 01:53:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-23 01:53:43 +0300 |
commit | a5a533750353cc05e91211a4dfec4e7dd020d7ac (patch) | |
tree | 1c69608fe974dd773d012f50cb5430520bea7315 /src | |
parent | c21d7f9229d7d450012a8cd3b197c0f4432bfb7a (diff) | |
download | manaplus-a5a533750353cc05e91211a4dfec4e7dd020d7ac.tar.gz manaplus-a5a533750353cc05e91211a4dfec4e7dd020d7ac.tar.bz2 manaplus-a5a533750353cc05e91211a4dfec4e7dd020d7ac.tar.xz manaplus-a5a533750353cc05e91211a4dfec4e7dd020d7ac.zip |
eathena: add partial support for packet SMSG_CART_REMOVE 0x012b.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 10 | ||||
-rw-r--r-- | src/net/eathena/inventoryhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index ab384e2ce..da8091f98 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -95,6 +95,7 @@ InventoryHandler::InventoryHandler() : SMSG_PLAYER_ITEM_RENTAL_TIME, SMSG_PLAYER_ITEM_RENTAL_EXPIRED, SMSG_CART_INFO, + SMSG_CART_REMOVE, 0 }; handledMessages = _messages; @@ -197,6 +198,10 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) processCartInfo(msg); break; + case SMSG_CART_REMOVE: + processCartRemove(msg); + break; + default: break; } @@ -739,4 +744,9 @@ void InventoryHandler::processCartInfo(Net::MessageIn &msg) msg.readInt32("max cart weight"); } +void InventoryHandler::processCartRemove(Net::MessageIn &msg A_UNUSED) +{ + //+++ need close or clear cart? +} + } // namespace EAthena diff --git a/src/net/eathena/inventoryhandler.h b/src/net/eathena/inventoryhandler.h index 8508032ee..740b9c0c4 100644 --- a/src/net/eathena/inventoryhandler.h +++ b/src/net/eathena/inventoryhandler.h @@ -104,6 +104,8 @@ class InventoryHandler final : public MessageHandler, static void processPlayerStorageRemove(Net::MessageIn &msg); static void processCartInfo(Net::MessageIn &msg); + + static void processCartRemove(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 8e2aee5c2..29743c4c2 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -328,6 +328,7 @@ #define SMSG_MAP_MUSIC 0x0b05 #define SMSG_CART_INFO 0x0121 +#define SMSG_CART_REMOVE 0x012b /********************************** * Packets from client to server * |