mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 02:46:49 +00:00
Allow immediate re-targeting if an attack target becomes invalid.
This was SVN commit r12549.
This commit is contained in:
@@ -936,7 +936,11 @@ var UnitFsmSpec = {
|
||||
|
||||
// See if we can switch to a new nearby enemy
|
||||
if (this.FindNewTargets())
|
||||
{
|
||||
// Attempt to immediately re-enter the timer function, to avoid wasting the attack.
|
||||
this.TimerHandler(msg.data, msg.lateness);
|
||||
return;
|
||||
}
|
||||
|
||||
// Return to our original position
|
||||
if (this.GetStance().respondHoldGround)
|
||||
|
||||
Reference in New Issue
Block a user