Order landed aircraft to take off if their reservation is cancelled.

This commit is contained in:
Paul Chote
2016-07-09 12:05:41 +01:00
parent 71d6471df7
commit b87020f93f

View File

@@ -271,6 +271,8 @@ namespace OpenRA.Mods.Common.Traits
reservation.Dispose();
reservation = null;
if (self.World.Map.DistanceAboveTerrain(CenterPosition).Length <= Info.LandAltitude.Length)
self.QueueActivity(new TakeOff(self));
}
public bool AircraftCanEnter(Actor a)