remove duplicate of ReserveSpawnBuilding from heli
This commit is contained in:
@@ -99,19 +99,7 @@ namespace OpenRA.Mods.RA.Air
|
|||||||
if (firstTick)
|
if (firstTick)
|
||||||
{
|
{
|
||||||
firstTick = false;
|
firstTick = false;
|
||||||
if (self.Trait<IMove>().Altitude == 0)
|
ReserveSpawnBuilding();
|
||||||
{
|
|
||||||
/* 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<Reservable>());
|
|
||||||
|
|
||||||
if (afld != null)
|
|
||||||
{
|
|
||||||
var res = afld.Trait<Reservable>();
|
|
||||||
if (res != null)
|
|
||||||
reservation = res.Reserve(afld, self, this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var aircraft = self.Trait<Aircraft>();
|
var aircraft = self.Trait<Aircraft>();
|
||||||
|
|||||||
Reference in New Issue
Block a user