Clean up usage of CancelActivity.
This commit is contained in:
@@ -95,10 +95,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (order.OrderString != "CaptureActor" || IsTraitDisabled)
|
||||
return;
|
||||
|
||||
if (!order.Queued)
|
||||
self.CancelActivity();
|
||||
|
||||
self.QueueActivity(new CaptureActor(self, order.Target));
|
||||
self.QueueActivity(order.Queued, new CaptureActor(self, order.Target));
|
||||
self.ShowTargetLines();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user