diff options
-rw-r--r-- | src/net/itemhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/protocol.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/net/itemhandler.cpp b/src/net/itemhandler.cpp index fffb3a45..7c4d3940 100644 --- a/src/net/itemhandler.cpp +++ b/src/net/itemhandler.cpp @@ -33,6 +33,7 @@ ItemHandler::ItemHandler() { static const Uint16 _messages[] = { GPMSG_ITEMS, + GPMSG_ITEM_APPEAR, 0 }; handledMessages = _messages; @@ -42,6 +43,7 @@ void ItemHandler::handleMessage(MessageIn &msg) { switch (msg.getId()) { + case GPMSG_ITEM_APPEAR: case GPMSG_ITEMS: { while (msg.getUnreadLength()) diff --git a/src/net/protocol.h b/src/net/protocol.h index 685d3161..27f5a7c8 100644 --- a/src/net/protocol.h +++ b/src/net/protocol.h @@ -153,6 +153,7 @@ enum { // player: S name, B hair style, B hair color, B gender // monster: W type id GPMSG_BEING_LEAVE = 0x0201, // W being id + GPMSG_ITEM_APPEAR = 0x0202, // W item id, W*2 position PGMSG_WALK = 0x0260, // W*2 destination GPMSG_BEINGS_MOVE = 0x0280, // { W being id, B flags [, C position] [, W*2 destination] }* GPMSG_ITEMS = 0x0281, // { W item id, W*2 position }* |