Remove PPos overload of FindUnitsInCircle.
This commit is contained in:
@@ -109,7 +109,7 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
IEnumerable<Actor> UnitsInRange()
|
||||
{
|
||||
return Self.World.FindUnitsInCircle(Self.CenterLocation, Game.CellSize * Info.Range)
|
||||
return Self.World.FindUnitsInCircle(Self.CenterPosition, WRange.FromCells(Info.Range))
|
||||
.Where(a => a.IsInWorld && a != Self && !a.Destroyed)
|
||||
.Where(a => !a.Owner.NonCombatant);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user