Fix aircraft with TakeOffOnCreation=false not freeing exit
...when another actor gets produced.
This commit is contained in:
@@ -1249,7 +1249,11 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
public override bool Tick(Actor self)
|
public override bool Tick(Actor self)
|
||||||
{
|
{
|
||||||
if (!aircraft.Info.TakeOffOnCreation)
|
if (!aircraft.Info.TakeOffOnCreation)
|
||||||
|
{
|
||||||
|
// Freshly created aircraft shouldn't block the exit, so we allow them to yield their reservation
|
||||||
|
aircraft.AllowYieldingReservation();
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (self.World.Map.DistanceAboveTerrain(aircraft.CenterPosition).Length <= aircraft.LandAltitude.Length)
|
if (self.World.Map.DistanceAboveTerrain(aircraft.CenterPosition).Length <= aircraft.LandAltitude.Length)
|
||||||
QueueChild(new TakeOff(self));
|
QueueChild(new TakeOff(self));
|
||||||
|
|||||||
Reference in New Issue
Block a user