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) if (firstTick)
{ {
firstTick = false; firstTick = false;
if (!self.HasTrait<FallsToEarth>()) // TODO: Aircraft husks don't properly unreserve. if (self.HasTrait<FallsToEarth>()) // TODO: Aircraft husks don't properly unreserve.
ReserveSpawnBuilding(); return;
ReserveSpawnBuilding();
var host = GetActorBelow(); var host = GetActorBelow();
if (host == null) if (host == null)

View File

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