summaryrefslogtreecommitdiff
path: root/src/net/equipmenthandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/equipmenthandler.cpp')
-rw-r--r--src/net/equipmenthandler.cpp8
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;