Improve handling of finished/cancelled Resupply

This commit is contained in:
reaperrr
2019-07-11 13:50:17 +02:00
committed by Paul Chote
parent 5b65e618ee
commit 5211eb25aa
2 changed files with 33 additions and 31 deletions

View File

@@ -120,9 +120,7 @@ namespace OpenRA.Mods.Common.Activities
aircraft.MakeReservation(dest);
QueueChild(new Land(self, Target.FromActor(dest), offset, facing));
QueueChild(new Resupply(self, dest, WDist.Zero));
if (aircraft.Info.FlightDynamics.HasFlag(FlightDynamic.TakeOffOnResupply) && !alwaysLand)
QueueChild(new TakeOff(self));
QueueChild(new Resupply(self, dest, WDist.Zero, alwaysLand));
return true;
}