Remove PPos overload of ClosestTo.

This commit is contained in:
Paul Chote
2013-07-20 13:31:45 +12:00
parent c1a0836640
commit 39d2095e54
7 changed files with 7 additions and 12 deletions

View File

@@ -29,7 +29,7 @@ namespace OpenRA.Mods.RA
.Where(a => a.IsInWorld && !a.IsDead())
.Where(a => a.GetDamageState() > DamageState.Undamaged)
.Where(a => attack.HasAnyValidWeapons(Target.FromActor(a)))
.ClosestTo( self.CenterLocation );
.ClosestTo(self);
if (target != null)
self.QueueActivity(attack.GetAttackActivity(self, Target.FromActor(target), false));