From ba25bc6df43f1a2e4965f9dab83f0926a4ecf023 Mon Sep 17 00:00:00 2001 From: geckosoft Date: Sat, 13 Nov 2010 01:38:01 +0100 Subject: [PATCH] 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 --- OpenRA.Mods.RA/HackyAI.cs | 2 +- OpenRA.Mods.RA/UnitStances/UnitStanceDefensive.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.RA/HackyAI.cs b/OpenRA.Mods.RA/HackyAI.cs index 136aa05836..d22c23d579 100644 --- a/OpenRA.Mods.RA/HackyAI.cs +++ b/OpenRA.Mods.RA/HackyAI.cs @@ -357,7 +357,7 @@ namespace OpenRA.Mods.RA range = Math.Max(range, loopCount / 2); if (loopCount > 10) return false; } while (!a.Trait().CanEnterCell(xy) && xy != a.Location); - world.IssueOrder(new Order("AttackMove", a, xy)); + world.IssueOrder(new Order("AttackMove", a, xy, false)); return true; } diff --git a/OpenRA.Mods.RA/UnitStances/UnitStanceDefensive.cs b/OpenRA.Mods.RA/UnitStances/UnitStanceDefensive.cs index 02e3806487..39fabd7c22 100644 --- a/OpenRA.Mods.RA/UnitStances/UnitStanceDefensive.cs +++ b/OpenRA.Mods.RA/UnitStances/UnitStanceDefensive.cs @@ -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().MoveWithinRange(DefendTarget, 1)); WaitForIdle(); });