- missed some things in last bugfix

This commit is contained in:
Mark Vejvoda 2011-06-09 21:50:54 +00:00
parent c9518d727a
commit 6b14c21446
1 changed files with 13 additions and 2 deletions

View File

@ -483,7 +483,17 @@ void UnitUpdater::updateAttack(Unit *unit, int frameIndex) {
else {
//if unit arrives destPos order has ended
switch (tsValue) {
case tsMoving:
unit->setCurrSkill(act->getMoveSkillType());
break;
case tsBlocked:
if(unit->getPath()->isBlocked()) {
unit->finishCommand();
}
break;
default:
unit->finishCommand();
}
/*
case tsMoving:
unit->setCurrSkill(act->getMoveSkillType());
@ -514,7 +524,7 @@ void UnitUpdater::updateAttack(Unit *unit, int frameIndex) {
}
break;
*/
case tsBlocked:
if(unit->getPath()->isBlocked()){
unit->finishCommand();
@ -523,6 +533,7 @@ void UnitUpdater::updateAttack(Unit *unit, int frameIndex) {
default:
unit->finishCommand();
}
*/
}
}
if(SystemFlags::getSystemSettingType(SystemFlags::debugPerformance).enabled && chrono.getMillis() > 0) SystemFlags::OutputDebug(SystemFlags::debugPerformance,"In [%s::%s Line: %d] took msecs: %lld\n",__FILE__,__FUNCTION__,__LINE__,chrono.getMillis());