summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-09-09 17:37:41 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-09-09 17:37:41 +0000
commit73fe28e6ad029106280f9c73e2bb2bd53d991072 (patch)
treeb2117ae577d19412afa55daefdbb651a118e313e /src
parentb3a64dc0c6db8c2f2a6faf5e3d2cd11c81713114 (diff)
downloadmana-73fe28e6ad029106280f9c73e2bb2bd53d991072.tar.gz
mana-73fe28e6ad029106280f9c73e2bb2bd53d991072.tar.bz2
mana-73fe28e6ad029106280f9c73e2bb2bd53d991072.tar.xz
mana-73fe28e6ad029106280f9c73e2bb2bd53d991072.zip
Fixes to dropped items network code
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 45bc4dce..bfabc528 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -969,7 +969,9 @@ void do_parse()
if (in_size >= 2) {
// Check if the received packet is complete
while (in_size >= (len = get_packet_length(id = RFIFOW(0)))) {
+#ifdef DEBUG
printf("Packet_ID: %x\n", RFIFOW(0));
+#endif
// Parse packet based on their id
switch (id)
@@ -1683,15 +1685,15 @@ void do_parse()
case 0x009d:
case 0x009e:
floorItem = new FloorItem();
- floorItem->id = net_w_value(RFIFOW(6));
- floorItem->x = net_w_value(RFIFOW(9));
- floorItem->y = net_w_value(RFIFOW(11));
- floorItem->int_id = net_l_value(RFIFOL(2));
+ floorItem->id = RFIFOW(6);
+ floorItem->x = RFIFOW(9);
+ floorItem->y = RFIFOW(11);
+ floorItem->int_id = RFIFOL(2);
add_floor_item(floorItem);
break;
// Item disappearing
case 0x00a1:
- remove_floor_item(net_l_value(RFIFOL(2)));
+ remove_floor_item(RFIFOL(2));
break;
// Next/Close button in NPC dialog
case 0x00b5: