Rearming aircraft now reapplies rearming order if canceled on landing structure

- Implemented by making the ResupplyAircraft activity recreate a new resupply activity if cancelled and also having no other queued activities.
- Tested in TD, RA, TS.
This commit is contained in:
BGluth
2018-07-20 00:32:53 -06:00
committed by reaperrr
parent 1bfe70e923
commit 09b9ed3506

View File

@@ -50,6 +50,10 @@ namespace OpenRA.Mods.Common.Activities
public override Activity Tick(Actor self) public override Activity Tick(Actor self)
{ {
// Conditional fixes being able to stop aircraft from resupplying.
if (IsCanceled && NextInQueue == null)
OnFirstRun(self);
return NextActivity; return NextActivity;
} }
} }