mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
UnitAI: keep chasing on forced orders.
Following 38b33b0484, units on aggressive stance no longer chase beyond
their own vision, including on player-forced orders. This fixes that
regression.
(Note that approaching and chasing are a bit inconsistent).
This commit is contained in:
committed by
wraitii
parent
cb6f46db71
commit
63b0f05b43
@@ -5608,8 +5608,7 @@ UnitAI.prototype.ShouldChaseTargetedEntity = function(target, force)
|
||||
// Check if we should chase based on stance
|
||||
if (this.GetStance().respondChase)
|
||||
{
|
||||
// If we're allowed to chase beyond vision, always chase
|
||||
if (this.GetStance().respondChaseBeyondVision)
|
||||
if (force || this.GetStance().respondChaseBeyondVision)
|
||||
return true;
|
||||
|
||||
// Otherwise, only chase if the target is within our personal vision
|
||||
|
||||
Reference in New Issue
Block a user