Aircraft won't take off on terrain height change when idle
This commit is contained in:
@@ -763,9 +763,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
return;
|
||||
}
|
||||
|
||||
if (Info.IdleBehavior != IdleBehaviorType.Land && dat != Info.CruiseAltitude)
|
||||
self.QueueActivity(new TakeOff(self));
|
||||
else if (Info.IdleBehavior == IdleBehaviorType.Land && Info.LandableTerrainTypes.Count > 0)
|
||||
if (Info.IdleBehavior == IdleBehaviorType.Land && Info.LandableTerrainTypes.Count > 0)
|
||||
self.QueueActivity(new Land(self));
|
||||
else
|
||||
self.QueueActivity(new FlyIdle(self));
|
||||
|
||||
Reference in New Issue
Block a user