diff options
author | David Athay <ko2fan@gmail.com> | 2007-03-19 16:52:44 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2007-03-19 16:52:44 +0000 |
commit | 3702c703ff49f7ca21c5fa6c789cab12cab282b9 (patch) | |
tree | 99760cf27b2cffed647d7ee765a7c1855dec7eb0 /src/net/equipmenthandler.cpp | |
parent | a6f43600f1a9e7b1f39ca0ea9068130b680e5a89 (diff) | |
download | mana-3702c703ff49f7ca21c5fa6c789cab12cab282b9.tar.gz mana-3702c703ff49f7ca21c5fa6c789cab12cab282b9.tar.bz2 mana-3702c703ff49f7ca21c5fa6c789cab12cab282b9.tar.xz mana-3702c703ff49f7ca21c5fa6c789cab12cab282b9.zip |
Added target cursor. Shows blue when target in range, and red when out of range.
Diffstat (limited to 'src/net/equipmenthandler.cpp')
-rw-r--r-- | src/net/equipmenthandler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/equipmenthandler.cpp b/src/net/equipmenthandler.cpp index 01760eeb..74ce95f3 100644 --- a/src/net/equipmenthandler.cpp +++ b/src/net/equipmenthandler.cpp @@ -43,6 +43,7 @@ EquipmentHandler::EquipmentHandler() 0x01d7, SMSG_PLAYER_UNEQUIP, SMSG_PLAYER_ARROW_EQUIP, + SMSG_PLAYER_ATTACK_RANGE, 0 }; handledMessages = _messages; @@ -191,6 +192,10 @@ void EquipmentHandler::handleMessage(MessageIn *msg) logger->log("Unequipping: %i %i(%i) %i", index, equipPoint, type, position); break; + + case SMSG_PLAYER_ATTACK_RANGE: + player_node->setAttackRange(msg->readInt16()); + break; case SMSG_PLAYER_ARROW_EQUIP: itemId = msg->readInt16(); |