summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-01-03 23:18:50 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-01-03 23:18:50 +0000
commite160ba567bf3d2ae915e67c12c13e213c1a32a62 (patch)
tree4edead7bdce9e7d329cc0cb35a34e2a7864e39b4 /src/net
parent0af87580d604b43a0b3e46354583c956f42b7cae (diff)
downloadmana-e160ba567bf3d2ae915e67c12c13e213c1a32a62.tar.gz
mana-e160ba567bf3d2ae915e67c12c13e213c1a32a62.tar.bz2
mana-e160ba567bf3d2ae915e67c12c13e213c1a32a62.tar.xz
mana-e160ba567bf3d2ae915e67c12c13e213c1a32a62.zip
Added message for new items.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/itemhandler.cpp2
-rw-r--r--src/net/protocol.h1
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 }*