summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/inventoryhandler.cpp10
-rw-r--r--src/net/eathena/inventoryhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
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 *