- missed some things in last bugfix
This commit is contained in:
parent
c9518d727a
commit
6b14c21446
|
@ -483,7 +483,17 @@ void UnitUpdater::updateAttack(Unit *unit, int frameIndex) {
|
||||||
else {
|
else {
|
||||||
//if unit arrives destPos order has ended
|
//if unit arrives destPos order has ended
|
||||||
switch (tsValue) {
|
switch (tsValue) {
|
||||||
|
case tsMoving:
|
||||||
|
unit->setCurrSkill(act->getMoveSkillType());
|
||||||
|
break;
|
||||||
|
case tsBlocked:
|
||||||
|
if(unit->getPath()->isBlocked()) {
|
||||||
|
unit->finishCommand();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
unit->finishCommand();
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
case tsMoving:
|
case tsMoving:
|
||||||
unit->setCurrSkill(act->getMoveSkillType());
|
unit->setCurrSkill(act->getMoveSkillType());
|
||||||
|
@ -514,7 +524,7 @@ void UnitUpdater::updateAttack(Unit *unit, int frameIndex) {
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
*/
|
|
||||||
case tsBlocked:
|
case tsBlocked:
|
||||||
if(unit->getPath()->isBlocked()){
|
if(unit->getPath()->isBlocked()){
|
||||||
unit->finishCommand();
|
unit->finishCommand();
|
||||||
|
@ -523,6 +533,7 @@ void UnitUpdater::updateAttack(Unit *unit, int frameIndex) {
|
||||||
default:
|
default:
|
||||||
unit->finishCommand();
|
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());
|
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());
|
||||||
|
|
Loading…
Reference in New Issue