From 0432de0928fbd41d6519a39e2e7212df66910013 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Fri, 20 Jan 2012 02:01:14 +0100 Subject: Random hacking cleanups in the LocalPlayer class MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- src/net/tmwa/inventoryhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net') 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; -- cgit v1.2.3-70-g09d2