If aircraft has FallsToEarth, return instead of just skipping reservation.

This commit is contained in:
reaperrr
2015-08-11 15:06:13 +02:00
parent 6fc8de69ac
commit 9cbc16b6a3
2 changed files with 8 additions and 4 deletions

View File

@@ -133,8 +133,10 @@ namespace OpenRA.Mods.Common.Traits
if (firstTick)
{
firstTick = false;
if (!self.HasTrait<FallsToEarth>()) // TODO: Aircraft husks don't properly unreserve.
ReserveSpawnBuilding();
if (self.HasTrait<FallsToEarth>()) // TODO: Aircraft husks don't properly unreserve.
return;
ReserveSpawnBuilding();
var host = GetActorBelow();
if (host == null)

View File

@@ -43,8 +43,10 @@ namespace OpenRA.Mods.Common.Traits
if (firstTick)
{
firstTick = false;
if (!self.HasTrait<FallsToEarth>()) // TODO: Aircraft husks don't properly unreserve.
ReserveSpawnBuilding();
if (self.HasTrait<FallsToEarth>()) // TODO: Aircraft husks don't properly unreserve.
return;
ReserveSpawnBuilding();
var host = GetActorBelow();
if (host == null)