diff --git a/OpenRA.Mods.RA/Production.cs b/OpenRA.Mods.RA/Production.cs index 701577f670..5f15a038e4 100755 --- a/OpenRA.Mods.RA/Production.cs +++ b/OpenRA.Mods.RA/Production.cs @@ -64,7 +64,6 @@ namespace OpenRA.Mods.RA var exitLocation = rp.Value != null ? rp.Value.rallyPoint : exit; var target = Target.FromCell(self.World, exitLocation); - var nearEnough = rp.Value != null ? WRange.FromCells(rp.Value.nearEnough) : WRange.Zero; self.World.AddFrameEndTask(w => { @@ -88,7 +87,7 @@ namespace OpenRA.Mods.RA { newUnit.QueueActivity(move.MoveIntoWorld(newUnit, exit)); newUnit.QueueActivity(new AttackMove.AttackMoveActivity( - newUnit, move.MoveWithinRange(target, nearEnough))); + newUnit, move.MoveTo(exitLocation, 1))); } } diff --git a/OpenRA.Mods.RA/RallyPoint.cs b/OpenRA.Mods.RA/RallyPoint.cs index 56f3b361d3..24289b0167 100644 --- a/OpenRA.Mods.RA/RallyPoint.cs +++ b/OpenRA.Mods.RA/RallyPoint.cs @@ -25,7 +25,6 @@ namespace OpenRA.Mods.RA public class RallyPoint : IIssueOrder, IResolveOrder, ISync { [Sync] public CPos rallyPoint; - public int nearEnough = 1; public RallyPoint(Actor self, RallyPointInfo info) {