Merge HeliFly into Fly

This commit is contained in:
reaperrr
2019-05-01 15:45:10 +02:00
committed by Paul Chote
parent 5698ea0910
commit 4f8f8cfb9d
14 changed files with 129 additions and 243 deletions

View File

@@ -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;
}