pass target to DoAttack

This commit is contained in:
Bob
2010-10-24 01:43:48 +13:00
committed by Chris Forbes
parent c5358f7c82
commit aa0b7bedf0
9 changed files with 23 additions and 23 deletions

View File

@@ -60,7 +60,7 @@ namespace OpenRA.Mods.RA.Activities
}
attack.target = Target;
attack.DoAttack(self);
attack.DoAttack(self, Target);
return this;
}
}

View File

@@ -27,7 +27,7 @@ namespace OpenRA.Mods.RA.Activities
if( limitedAmmo != null && !limitedAmmo.HasAmmo() )
Cancel( self );
self.Trait<AttackPlane>().DoAttack( self );
self.Trait<AttackPlane>().DoAttack( self, Target );
if( IsCanceled && inner == null ) return NextActivity;

View File

@@ -50,7 +50,7 @@ namespace OpenRA.Mods.RA.Activities
if (!float2.WithinEpsilon(float2.Zero, dist, range * Game.CellSize))
aircraft.center += (rawSpeed / dist.Length) * dist;
attack.DoAttack( self );
attack.DoAttack( self, target );
return this;
}