Merge HeliFly into Fly
This commit is contained in:
@@ -82,7 +82,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
// For VTOLs we assume we've already arrived at the target location and just need to move downward
|
||||
if (aircraft.Info.VTOL)
|
||||
{
|
||||
if (HeliFly.AdjustAltitude(self, aircraft, landAltitude))
|
||||
if (Fly.VerticalTakeOffOrLandTick(self, aircraft, aircraft.Facing, landAltitude))
|
||||
return this;
|
||||
|
||||
return NextActivity;
|
||||
@@ -100,7 +100,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
}
|
||||
|
||||
var landingAlt = self.World.Map.DistanceAboveTerrain(target.CenterPosition + offset) + aircraft.LandAltitude;
|
||||
Fly.FlyToward(self, aircraft, d.Yaw.Facing, landingAlt);
|
||||
Fly.FlyTick(self, aircraft, d.Yaw.Facing, landingAlt);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user