Fixed aircraft in TS landing instantly to reload their ammo

- Updated calculating the landing altitude for the Land activity not taking into account the terrain height.
- Fixes 14312.
This commit is contained in:
BGluth
2018-08-04 02:39:51 -06:00
committed by reaperrr
parent 3f81df9c52
commit 5c42f55b3a

View File

@@ -44,7 +44,8 @@ namespace OpenRA.Mods.Common.Activities
return NextActivity;
}
Fly.FlyToward(self, plane, d.Yaw.Facing, new WDist(target.CenterPosition.Z));
var landingAlt = self.World.Map.DistanceAboveTerrain(target.CenterPosition);
Fly.FlyToward(self, plane, d.Yaw.Facing, landingAlt);
return this;
}