From e160ba567bf3d2ae915e67c12c13e213c1a32a62 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Wed, 3 Jan 2007 23:18:50 +0000 Subject: Added message for new items. --- src/net/itemhandler.cpp | 2 ++ src/net/protocol.h | 1 + 2 files changed, 3 insertions(+) (limited to 'src/net') 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 }* -- cgit v1.2.3-70-g09d2