From 41fc6f661e09148980a20739befc600c643ad2f2 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 23 Mar 2011 01:17:38 +0000 Subject: [PATCH] - rollback last change for testing --- source/glest_game/world/unit_updater.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/glest_game/world/unit_updater.cpp b/source/glest_game/world/unit_updater.cpp index be0f310f..47d3f6e8 100644 --- a/source/glest_game/world/unit_updater.cpp +++ b/source/glest_game/world/unit_updater.cpp @@ -267,15 +267,15 @@ void UnitUpdater::updateUnitCommand(Unit *unit, int frameIndex) { if(unit->anyCommand() == false && unit->isOperative()) { SystemFlags::OutputDebug(SystemFlags::debugUnitCommands,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__); - const SkillType *currSkill= unit->getCurrSkill(); - if(currSkill == NULL || currSkill->getClass() != scStop) { + //const SkillType *currSkill= unit->getCurrSkill(); + //if(currSkill == NULL || currSkill->getClass() != scStop) { unit->setCurrSkill(scStop); if(unit->getType()->hasCommandClass(ccStop)) { //SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__); unit->giveCommand(new Command(unit->getType()->getFirstCtOfClass(ccStop))); } - } + //} } } if(chrono.getMillis() > 0) SystemFlags::OutputDebug(SystemFlags::debugPerformance,"In [%s::%s] Line: %d took msecs: %lld --------------------------- [END OF METHOD] ---------------------------\n",__FILE__,__FUNCTION__,__LINE__,chrono.getMillis());