remove spurious allowMovement parameter from ScanAndAttack

This commit is contained in:
Chris Forbes
2012-01-07 20:07:26 +13:00
parent 6315864f84
commit 85293a482e
2 changed files with 3 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ namespace OpenRA.Mods.RA
{ {
if (--scanTicks <= 0) if (--scanTicks <= 0)
{ {
self.Trait<AutoTarget>().ScanAndAttack(self, true); self.Trait<AutoTarget>().ScanAndAttack(self);
scanTicks = ScanInterval; scanTicks = ScanInterval;
} }

View File

@@ -96,11 +96,11 @@ namespace OpenRA.Mods.RA
return currentTarget; return currentTarget;
} }
public void ScanAndAttack(Actor self, bool allowMovement) public void ScanAndAttack(Actor self)
{ {
var targetActor = ScanForTarget(self, null); var targetActor = ScanForTarget(self, null);
if (targetActor != null) if (targetActor != null)
attack.AttackTarget(Target.FromActor(targetActor), false, allowMovement && stance != UnitStance.Defend); attack.AttackTarget(Target.FromActor(targetActor), false, Info.AllowMovement && stance != UnitStance.Defend);
} }
Actor ChooseTarget(Actor self, float range) Actor ChooseTarget(Actor self, float range)