diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-08-22 16:07:11 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-08-22 16:07:11 +0000 |
commit | 10ebf4484985b98e9248c8de84b35af9b6e26d3a (patch) | |
tree | 29a1f79bd66505a80e4dfeda31230ed2df97798d /src/net/equipmenthandler.cpp | |
parent | 353560a2829fb9b1d9d26121658ce83589c4f5ef (diff) | |
download | mana-client-10ebf4484985b98e9248c8de84b35af9b6e26d3a.tar.gz mana-client-10ebf4484985b98e9248c8de84b35af9b6e26d3a.tar.bz2 mana-client-10ebf4484985b98e9248c8de84b35af9b6e26d3a.tar.xz mana-client-10ebf4484985b98e9248c8de84b35af9b6e26d3a.zip |
Fixed an arithmetic exception in ItemShortcutContainer::draw.
Changed default sitting key back to 's'.
Fixed a problem with all equipment being interpreted as weapon sprite.
Diffstat (limited to 'src/net/equipmenthandler.cpp')
-rw-r--r-- | src/net/equipmenthandler.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/net/equipmenthandler.cpp b/src/net/equipmenthandler.cpp index 579b6ed3..60be5c74 100644 --- a/src/net/equipmenthandler.cpp +++ b/src/net/equipmenthandler.cpp @@ -125,16 +125,18 @@ void EquipmentHandler::handleMessage(MessageIn *msg) item = player_node->getInvItem(index); player_node->mEquipment->setEquipment(position, item); - player_node->setVisibleEquipment( - Being::WEAPON_SPRITE, item->getId()); break; case 0x01d7: - // Equipment related + // Equipment related. At least confirmed to be required for weapon + // changes to appear on the local player. being = beingManager->findBeing(msg->readInt32()); msg->readInt8(); // equip point itemId = msg->readInt16(); msg->readInt16(); // item id 2 + logger->log("0x01d7 (%s, itemId = %d)", + (being == player_node) ? "player" : "somebody else", + itemId); if (!being) break; |