diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-03-17 02:05:52 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-03-17 02:05:52 +0100 |
commit | 45c3f943b42423dbe162bfac4a57cad013ba0630 (patch) | |
tree | 0bb0caaa15af42f1d2c3bc14061202aacf9bee6d /src/net/tmwa/inventoryhandler.cpp | |
parent | fe153c7b2598262281477882a2ef82400b24f5b5 (diff) | |
download | mana-45c3f943b42423dbe162bfac4a57cad013ba0630.tar.gz mana-45c3f943b42423dbe162bfac4a57cad013ba0630.tar.bz2 mana-45c3f943b42423dbe162bfac4a57cad013ba0630.tar.xz mana-45c3f943b42423dbe162bfac4a57cad013ba0630.zip |
Simplified the get/setAttackRange() functions as requested.
The attack range is still hardcoded for Manaserv as long
as generic equipment handling hasn't been implemented.
Diffstat (limited to 'src/net/tmwa/inventoryhandler.cpp')
-rw-r--r-- | src/net/tmwa/inventoryhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp index 8ec97a38..88c72ed6 100644 --- a/src/net/tmwa/inventoryhandler.cpp +++ b/src/net/tmwa/inventoryhandler.cpp @@ -416,7 +416,7 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) { mEquips.setEquipment(getSlot(equipType), -1); // Reset the attack range to unarmed. - player_node->setAttackRange(-1); + player_node->setAttackRange(ATTACK_RANGE_NOT_SET); } break; @@ -433,7 +433,7 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) { logger->log("Couldn't set attacke range due to the lack" "of an initialized map."); - player_node->setAttackRange(-1); + player_node->setAttackRange(ATTACK_RANGE_NOT_SET); } } break; |