Fix undeploy orders always being queued.

This commit is contained in:
Paul Chote
2019-06-10 10:14:34 +01:00
committed by abcdefg30
parent b63792c73e
commit a8b7fcaf87
6 changed files with 23 additions and 0 deletions

View File

@@ -81,7 +81,11 @@ namespace OpenRA.Mods.Common.Traits
self.SetTargetLine(order.Target, Color.Green);
// Manually manage the inner activity queue
var activity = currentTransform ?? transform.GetTransformActivity(self);
if (!order.Queued && activity.NextActivity != null)
activity.NextActivity.Cancel(self);
activity.Queue(self, new IssueOrderAfterTransform(order.OrderString, order.Target));
if (currentTransform == null)