summaryrefslogtreecommitdiff
path: root/src/net/tmwa/inventoryhandler.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-01-20 02:01:14 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-01-27 19:20:26 +0100
commit0432de0928fbd41d6519a39e2e7212df66910013 (patch)
tree626dacc78bf735e2c446e9153afa31a0559f5a77 /src/net/tmwa/inventoryhandler.cpp
parent5e8cc46a21e03acc7589fca181f7fae677853b29 (diff)
downloadmana-0432de0928fbd41d6519a39e2e7212df66910013.tar.gz
mana-0432de0928fbd41d6519a39e2e7212df66910013.tar.bz2
mana-0432de0928fbd41d6519a39e2e7212df66910013.tar.xz
mana-0432de0928fbd41d6519a39e2e7212df66910013.zip
Random hacking cleanups in the LocalPlayer class
- Renamed mLastTarget to mLastTargetTime, and mLastAction to mLastActionTime to clarify their use. - NULL -> 0. - Removed the unused mLocalWalkTime member. + Change requested by bjorn. Reviewed-by: Thorjørn Lindeijer
Diffstat (limited to 'src/net/tmwa/inventoryhandler.cpp')
-rw-r--r--src/net/tmwa/inventoryhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp
index a4f06003..dd74a625 100644
--- a/src/net/tmwa/inventoryhandler.cpp
+++ b/src/net/tmwa/inventoryhandler.cpp
@@ -420,7 +420,7 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg)
{
mEquips.setEquipment(getSlot(equipType), -1);
// Reset the attack range to unarmed.
- local_player->setAttackRange(ATTACK_RANGE_NOT_SET);
+ local_player->setAttackRange(-1);
}
break;
@@ -437,7 +437,7 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg)
{
logger->log("Couldn't set attacke range due to the lack"
"of an initialized map.");
- local_player->setAttackRange(ATTACK_RANGE_NOT_SET);
+ local_player->setAttackRange(-1);
}
}
break;