summaryrefslogtreecommitdiff
path: root/src/net/tmwserv/inventoryhandler.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-07-03 22:17:18 +0200
committerPhilipp Sehmisch <crush@themanaworld.org>2009-07-03 22:28:02 +0200
commit346d68307553c18777df4c49f9b3fe57955c5c0d (patch)
treed27d3fff4f5a366f597ae83d3fb62e2dbd4d69bf /src/net/tmwserv/inventoryhandler.cpp
parente0de8a124bf94b79d9d64e5406b21e8598a05d56 (diff)
downloadmana-client-346d68307553c18777df4c49f9b3fe57955c5c0d.tar.gz
mana-client-346d68307553c18777df4c49f9b3fe57955c5c0d.tar.bz2
mana-client-346d68307553c18777df4c49f9b3fe57955c5c0d.tar.xz
mana-client-346d68307553c18777df4c49f9b3fe57955c5c0d.zip
Implemented display of spell recharge information from server in the magic gui (very, very hackish)
Diffstat (limited to 'src/net/tmwserv/inventoryhandler.cpp')
-rw-r--r--src/net/tmwserv/inventoryhandler.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/tmwserv/inventoryhandler.cpp b/src/net/tmwserv/inventoryhandler.cpp
index 8110fdd2..6993167c 100644
--- a/src/net/tmwserv/inventoryhandler.cpp
+++ b/src/net/tmwserv/inventoryhandler.cpp
@@ -40,6 +40,8 @@
#include "resources/iteminfo.h"
+#include "log.h" // <<< REMOVE ME!
+
Net::InventoryHandler *inventoryHandler;
namespace TmwServ {
@@ -102,7 +104,9 @@ void InventoryHandler::unequipItem(const Item *item)
Net::GameServer::connection->send(msg);
// Tidy equipment directly to avoid weapon still shown bug, for instance
- player_node->mEquipment->setEquipment(item->getInvIndex(), 0);
+ int equipSlot = item->getInvIndex();
+ logger->log("Unequipping %d", equipSlot);
+ player_node->mEquipment->setEquipment(equipSlot, 0);
}
void InventoryHandler::useItem(const Item *item)