FG Mission Speed Fix

This commit is contained in:
Applevangelist 2023-01-01 13:30:46 +01:00
parent 6fa3f0a11c
commit d36ceb861a

View File

@ -3781,6 +3781,11 @@ function FLIGHTGROUP:AddWaypoint(Coordinate, Speed, AfterWaypointWithID, Altitud
-- Speed in knots. -- Speed in knots.
Speed=Speed or self:GetSpeedCruise() Speed=Speed or self:GetSpeedCruise()
local mission = self:GetMissionCurrent()
if mission and not self.isHelo then
Speed = mission.missionSpeed and mission.missionSpeed or self:GetSpeedCruise()
end
-- Alt type default is barometric (ASL). For helos we use radar (AGL). -- Alt type default is barometric (ASL). For helos we use radar (AGL).
local alttype=COORDINATE.WaypointAltType.BARO local alttype=COORDINATE.WaypointAltType.BARO
if self.isHelo then if self.isHelo then