Skip to content

Commit

Permalink
Rearming aircraft now reapplies rearming order if canceled on landing…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
BGluth committed Jul 21, 2018
1 parent 496155f commit 976b330
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OpenRA.Mods.Common/Activities/Air/ResupplyAircraft.cs
Expand Up @@ -50,6 +50,10 @@ protected override void OnFirstRun(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;
}
}
Expand Down

0 comments on commit 976b330

Please sign in to comment.