Don't reserve airfields/helipads for husks that just fall down

fixes #3376
This commit is contained in:
Matthias Mailänder
2013-06-16 11:24:03 +02:00
parent 886099a948
commit 11755798cc
7 changed files with 26 additions and 26 deletions

View File

@@ -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;

View File

@@ -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();
}

View File

@@ -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();
}
}