Merge pull request #11620 from pchote/fly-on-unreserve

Order landed aircraft to take off if their reservation is cancelled.
This commit is contained in:
Matthias Mailänder
2016-07-10 09:28:16 +02:00
committed by GitHub

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)