remove spurious parameter from ScanAndAttack

This commit is contained in:
Chris Forbes
2011-11-25 17:41:19 +13:00
parent 54e8266e37
commit 0ea9e06c22
2 changed files with 3 additions and 3 deletions

View File

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

View File

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