summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-02-21 23:23:24 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-02-21 23:23:24 +0100
commit458401d64fbe500295cc8e903702638fde0ab934 (patch)
tree3d1c606f118dba2b4f38fa80614bf30fdc12277c /src/net/tmwa
parente6cd1f9cb82811d05e08aef0493eeba9cc41a95d (diff)
parentd4bb2d1d0e82ca9d046f9b2346a7893ca11e8d9c (diff)
downloadmana-458401d64fbe500295cc8e903702638fde0ab934.tar.gz
mana-458401d64fbe500295cc8e903702638fde0ab934.tar.bz2
mana-458401d64fbe500295cc8e903702638fde0ab934.tar.xz
mana-458401d64fbe500295cc8e903702638fde0ab934.zip
Merge branch '0.5'
Translation file updates ignored. Conflicts: src/client.cpp src/commandhandler.cpp src/gui/popupmenu.cpp src/localplayer.cpp
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/inventoryhandler.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp
index 4aedd9f2..1d99eca4 100644
--- a/src/net/tmwa/inventoryhandler.cpp
+++ b/src/net/tmwa/inventoryhandler.cpp
@@ -226,13 +226,14 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg)
{
const ItemInfo &itemInfo = itemDb->get(itemId);
- if (msg.readInt8() > 0)
+ unsigned char err = msg.readInt8();
+ if (err)
{
- player_node->pickedUp(itemInfo, 0);
+ player_node->pickedUp(itemInfo, 0, err);
}
else
{
- player_node->pickedUp(itemInfo, amount);
+ player_node->pickedUp(itemInfo, amount, PICKUP_OKAY);
Item *item = inventory->getItem(index);