From 38b6d3527b5a2c5382814163e8196361960d45e7 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sat, 8 Oct 2011 22:08:38 +1300 Subject: [PATCH] remove duplicate of ReserveSpawnBuilding from heli --- OpenRA.Mods.RA/Air/Helicopter.cs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/OpenRA.Mods.RA/Air/Helicopter.cs b/OpenRA.Mods.RA/Air/Helicopter.cs index 57907d396f..4f205d8b93 100755 --- a/OpenRA.Mods.RA/Air/Helicopter.cs +++ b/OpenRA.Mods.RA/Air/Helicopter.cs @@ -99,19 +99,7 @@ namespace OpenRA.Mods.RA.Air if (firstTick) { firstTick = false; - if (self.Trait().Altitude == 0) - { - /* not spawning in the air, so try to assoc. with our afld. this is a hack. */ - var afld = self.World.FindUnits(self.CenterLocation, self.CenterLocation) - .FirstOrDefault(a => a.HasTrait()); - - if (afld != null) - { - var res = afld.Trait(); - if (res != null) - reservation = res.Reserve(afld, self, this); - } - } + ReserveSpawnBuilding(); } var aircraft = self.Trait();