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()
|
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();
|
var afld = GetActorBelow();
|
||||||
|
|
||||||
if (afld == null)
|
if (afld == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ namespace OpenRA.Mods.RA.Air
|
|||||||
if (firstTick)
|
if (firstTick)
|
||||||
{
|
{
|
||||||
firstTick = false;
|
firstTick = false;
|
||||||
|
if (!self.HasTrait<FallsToEarth>()) // TODO: Aircraft husks don't properly unreserve.
|
||||||
ReserveSpawnBuilding();
|
ReserveSpawnBuilding();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ namespace OpenRA.Mods.RA.Air
|
|||||||
if (firstTick)
|
if (firstTick)
|
||||||
{
|
{
|
||||||
firstTick = false;
|
firstTick = false;
|
||||||
|
if (!self.HasTrait<FallsToEarth>()) // TODO: Aircraft husks don't properly unreserve.
|
||||||
ReserveSpawnBuilding();
|
ReserveSpawnBuilding();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user