Added: More constructor overloads for Order (accepting a queued boolean now)

Added: Changed all IssueOrders to make use of the IOrderTargeter.IsQueued
Added: A 'hack' for SetChronoTankDestination so it also sets the queued value
This commit is contained in:
geckosoft
2010-11-13 01:38:01 +01:00
committed by Bob
parent 622f9bfe71
commit ba25bc6df4
2 changed files with 2 additions and 2 deletions

View File

@@ -357,7 +357,7 @@ namespace OpenRA.Mods.RA
range = Math.Max(range, loopCount / 2);
if (loopCount > 10) return false;
} while (!a.Trait<IMove>().CanEnterCell(xy) && xy != a.Location);
world.IssueOrder(new Order("AttackMove", a, xy));
world.IssueOrder(new Order("AttackMove", a, xy, false));
return true;
}

View File

@@ -154,7 +154,7 @@ namespace OpenRA.Mods.RA
self.World.AddFrameEndTask(w =>
{
self.CancelActivity();
attackBase.ResolveOrder(self, new Order("Stop", self));
attackBase.ResolveOrder(self, new Order("Stop", self, false));
self.QueueActivity(self.Trait<Mobile>().MoveWithinRange(DefendTarget, 1));
WaitForIdle();
});