From 90c12da33eb5828858fb650b4352f1555964eae5 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 25 Mar 2011 01:50:35 +0000 Subject: [PATCH] - see if this removes the command delay when issuing commands on idle units --- source/glest_game/type_instances/unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/type_instances/unit.cpp b/source/glest_game/type_instances/unit.cpp index bb22ef64..3c198fae 100644 --- a/source/glest_game/type_instances/unit.cpp +++ b/source/glest_game/type_instances/unit.cpp @@ -1257,7 +1257,7 @@ bool Unit::update() { if(currSkill->getClass() != scDie) { progress = 0.f; return_value = true; - if(currSkill->getClass() == scStop) { + if(currSkill->getClass() == scStop && this->anyCommand() == false) { return_value = false; uint32 framesSinceLastCheck = (game->getWorld()->getFrameCount() - this->getLastStopCommandCheckFrame()); if(this->getLastStopCommandCheckFrame() <= 0 ||