Remove PPos overload of FindUnitsInCircle.

This commit is contained in:
Paul Chote
2013-07-20 13:53:28 +12:00
parent 39d2095e54
commit e6865c5996
5 changed files with 21 additions and 32 deletions

View File

@@ -113,7 +113,8 @@ namespace OpenRA.Mods.RA.Air
/* repulsion only applies when we're flying */
if (Altitude <= 0) return;
var otherHelis = self.World.FindUnitsInCircle(self.CenterLocation, Info.IdealSeparation)
var separation = new WRange(Info.IdealSeparation * 1024 / Game.CellSize);
var otherHelis = self.World.FindUnitsInCircle(self.CenterPosition, separation)
.Where(a => a.HasTrait<Helicopter>());
var f = otherHelis