diff --git a/OpenRA.Game/WorldUtils.cs b/OpenRA.Game/WorldUtils.cs index 0c43535154..64c47d5af5 100755 --- a/OpenRA.Game/WorldUtils.cs +++ b/OpenRA.Game/WorldUtils.cs @@ -39,6 +39,11 @@ namespace OpenRA return actors.OrderBy( a => (a.CenterLocation - px).LengthSquared ).FirstOrDefault(); } + public static IEnumerable FindUnitsInCircle(this World world, WPos a, WRange r) + { + return world.FindUnitsInCircle(PPos.FromWPos(a), r.Range * Game.CellSize / 1024); + } + public static IEnumerable FindUnitsInCircle(this World world, PPos a, int r) { using (new PerfSample("FindUnitsInCircle"))