Clean up usage of CancelActivity.

This commit is contained in:
tovl
2019-08-31 16:47:12 +02:00
committed by reaperrr
parent 1e786b8e31
commit ac6431acf8
22 changed files with 24 additions and 83 deletions

View File

@@ -99,10 +99,7 @@ namespace OpenRA.Mods.Common.Traits
if (!CanRepairAt(order.Target.Actor) || !ShouldRepair())
return;
if (!order.Queued)
self.CancelActivity();
self.QueueActivity(new Resupply(self, order.Target.Actor, Info.CloseEnough));
self.QueueActivity(order.Queued, new Resupply(self, order.Target.Actor, Info.CloseEnough));
self.ShowTargetLines();
}