Don't reserve airfields/helipads for husks that just fall down
fixes #3376
This commit is contained in:
@@ -86,10 +86,8 @@ namespace OpenRA.Mods.RA.Air
|
||||
|
||||
protected void ReserveSpawnBuilding()
|
||||
{
|
||||
/* not spawning in the air, so try to assoc. with our afld. this is a hack. */
|
||||
|
||||
/* HACK: not spawning in the air, so try to assoc. with our afld. */
|
||||
var afld = GetActorBelow();
|
||||
|
||||
if (afld == null)
|
||||
return;
|
||||
|
||||
|
||||
@@ -106,6 +106,7 @@ namespace OpenRA.Mods.RA.Air
|
||||
if (firstTick)
|
||||
{
|
||||
firstTick = false;
|
||||
if (!self.HasTrait<FallsToEarth>()) // TODO: Aircraft husks don't properly unreserve.
|
||||
ReserveSpawnBuilding();
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ namespace OpenRA.Mods.RA.Air
|
||||
if (firstTick)
|
||||
{
|
||||
firstTick = false;
|
||||
if (!self.HasTrait<FallsToEarth>()) // TODO: Aircraft husks don't properly unreserve.
|
||||
ReserveSpawnBuilding();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user