@@ -64,7 +64,6 @@ namespace OpenRA.Mods.RA
|
|||||||
|
|
||||||
var exitLocation = rp.Value != null ? rp.Value.rallyPoint : exit;
|
var exitLocation = rp.Value != null ? rp.Value.rallyPoint : exit;
|
||||||
var target = Target.FromCell(self.World, exitLocation);
|
var target = Target.FromCell(self.World, exitLocation);
|
||||||
var nearEnough = rp.Value != null ? WRange.FromCells(rp.Value.nearEnough) : WRange.Zero;
|
|
||||||
|
|
||||||
self.World.AddFrameEndTask(w =>
|
self.World.AddFrameEndTask(w =>
|
||||||
{
|
{
|
||||||
@@ -88,7 +87,7 @@ namespace OpenRA.Mods.RA
|
|||||||
{
|
{
|
||||||
newUnit.QueueActivity(move.MoveIntoWorld(newUnit, exit));
|
newUnit.QueueActivity(move.MoveIntoWorld(newUnit, exit));
|
||||||
newUnit.QueueActivity(new AttackMove.AttackMoveActivity(
|
newUnit.QueueActivity(new AttackMove.AttackMoveActivity(
|
||||||
newUnit, move.MoveWithinRange(target, nearEnough)));
|
newUnit, move.MoveTo(exitLocation, 1)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ namespace OpenRA.Mods.RA
|
|||||||
public class RallyPoint : IIssueOrder, IResolveOrder, ISync
|
public class RallyPoint : IIssueOrder, IResolveOrder, ISync
|
||||||
{
|
{
|
||||||
[Sync] public CPos rallyPoint;
|
[Sync] public CPos rallyPoint;
|
||||||
public int nearEnough = 1;
|
|
||||||
|
|
||||||
public RallyPoint(Actor self, RallyPointInfo info)
|
public RallyPoint(Actor self, RallyPointInfo info)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user