From 421e38cab4a9127226cfeab06881a4d014c961bd Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 28 Oct 2011 01:22:36 +0000 Subject: [PATCH] cleaned up the code a bit for the command transition --- source/glest_game/type_instances/unit.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/glest_game/type_instances/unit.cpp b/source/glest_game/type_instances/unit.cpp index 4f9020ad..cb131e30 100644 --- a/source/glest_game/type_instances/unit.cpp +++ b/source/glest_game/type_instances/unit.cpp @@ -35,6 +35,8 @@ using namespace Shared::Util; namespace Glest{ namespace Game{ +const float CHANGE_COMMAND_SPEED = 325.0; + //Mutex Unit::mutexDeletedUnits; //map Unit::deletedUnits; @@ -1464,7 +1466,7 @@ bool Unit::needToUpdate() { int speed = currSkill->getTotalSpeed(&totalUpgrade); if(changedActiveCommand) { - speed = 325; + speed = CHANGE_COMMAND_SPEED; //return_value = true; } @@ -1561,7 +1563,7 @@ bool Unit::update() { int speed= currSkill->getTotalSpeed(&totalUpgrade); if(changedActiveCommand) { - speed = 325; + speed = CHANGE_COMMAND_SPEED; //return_value = true; }