summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-02-26 08:01:06 -0700
committerJared Adams <jaxad0127@gmail.com>2010-02-26 08:09:46 -0700
commitd564943867452ad76e6d313a28870e640715dded (patch)
tree443fa1c8a33784b2fb0e3b06493f122a76bce589 /src
parentc75e7d1701c3fa7597247ee88a3a4d804b0965ae (diff)
downloadmana-d564943867452ad76e6d313a28870e640715dded.tar.gz
mana-d564943867452ad76e6d313a28870e640715dded.tar.bz2
mana-d564943867452ad76e6d313a28870e640715dded.tar.xz
mana-d564943867452ad76e6d313a28870e640715dded.zip
Simplify arrow handling for eAthena
Reviewed-by: Thorbjørn Lindeijer
Diffstat (limited to 'src')
-rw-r--r--src/net/ea/inventoryhandler.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp
index 4e8aa725..60288ed3 100644
--- a/src/net/ea/inventoryhandler.cpp
+++ b/src/net/ea/inventoryhandler.cpp
@@ -174,16 +174,10 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg)
if (msg.getId() == SMSG_PLAYER_INVENTORY)
{
- inventory->setItem(index, itemId, amount, false);
-
// Trick because arrows are not considered equipment
- if (arrow & 0x8000)
- {
- if (Item *item = inventory->getItem(index))
- item->setEquipment(true);
- }
+ bool isEquipment = arrow & 0x8000;
- //const Item *item = inventory->getItem(index);
+ inventory->setItem(index, itemId, amount, isEquipment);
}
else
{