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 | |
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')
-rw-r--r-- | src/net/equipmenthandler.cpp | 5 | ||||
-rw-r--r-- | src/net/protocol.h | 1 |
2 files changed, 6 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(); diff --git a/src/net/protocol.h b/src/net/protocol.h index 72b459ed..f755eda4 100644 --- a/src/net/protocol.h +++ b/src/net/protocol.h @@ -44,6 +44,7 @@ #define SMSG_PLAYER_EQUIPMENT 0x00a4 #define SMSG_PLAYER_EQUIP 0x00aa #define SMSG_PLAYER_UNEQUIP 0x00ac +#define SMSG_PLAYER_ATTACK_RANGE 0x013a #define SMSG_PLAYER_ARROW_EQUIP 0x013c #define SMSG_PLAYER_ARROW_MESSAGE 0x013b #define SMSG_PLAYER_SKILLS 0x010f |