#FG - let planes not limp around

This commit is contained in:
Applevangelist 2022-12-31 18:02:15 +01:00
parent 0340d17ab8
commit b769568df1

View File

@ -943,7 +943,7 @@ function FLIGHTGROUP:Status()
local DCSTask=mission:GetDCSMissionTask() --DCS#Task
-- Get task.
local Task=mission:GetGroupWaypointTask(self)
local Task=self:GetTaskByID(mission.auftragsnummer)
-- Reset current orbit task.
self.controller:resetTask()
@ -3775,7 +3775,14 @@ function FLIGHTGROUP:AddWaypoint(Coordinate, Speed, AfterWaypointWithID, Altitud
local wpnumber=self:GetWaypointIndexAfterID(AfterWaypointWithID)
-- Speed in knots.
Speed=Speed or self:GetSpeedCruise()
if not Speed or Speed < 10 then
local mission = self:GetMissionCurrent() -- Ops.Auftrag#AUFTRAG
local speed = mission.missionSpeed
Speed = speed or self:GetSpeedCruise()
end
--Speed=Speed or self:GetSpeedCruise()
-- Alt type default is barometric (ASL). For helos we use radar (AGL).
local alttype=COORDINATE.WaypointAltType.BARO