summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-05-01 19:06:50 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-05-01 19:06:50 +0000
commit893cde9e754b805f1e62c517740919c04d9490e0 (patch)
tree90d31107c2097378ad1a7512726f540a55e0b8cb /src/game.cpp
parent5956605838be4419f7982ff25437b73c4e6f700e (diff)
downloadmana-client-893cde9e754b805f1e62c517740919c04d9490e0.tar.gz
mana-client-893cde9e754b805f1e62c517740919c04d9490e0.tar.bz2
mana-client-893cde9e754b805f1e62c517740919c04d9490e0.tar.xz
mana-client-893cde9e754b805f1e62c517740919c04d9490e0.zip
this should update arrows counter when picking up
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 51a0a0c7..0f1f0bdb 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1233,12 +1233,10 @@ void do_parse()
inventoryWindow->addItem(RFIFOW(2), RFIFOW(6),
RFIFOW(4), false);
}
- /*char info[40];
- sprintf(info, "a0 %i %i %i %i %i %i %i %i",
- RFIFOW(2), RFIFOW(4), RFIFOW(6),
- RFIFOB(8), RFIFOB(9), RFIFOB(10),
- RFIFOW(19), RFIFOB(21));
- chatWindow->chat_log(info, BY_SERVER);*/
+ if (equipmentWindow->getArrows() == RFIFOW(6))
+ {
+ equipmentWindow->arrowsNumber += RFIFOW(4);
+ }
}
break;
// Decrease quantity of an item in inventory