Merge pull request #1861 from FlightControl-Master/FF/Ops

Update FlightGroup.lua
This commit is contained in:
Frank 2023-01-01 09:30:15 +01:00 committed by GitHub
commit 9564d9d893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3779,14 +3779,7 @@ function FLIGHTGROUP:AddWaypoint(Coordinate, Speed, AfterWaypointWithID, Altitud
local wpnumber=self:GetWaypointIndexAfterID(AfterWaypointWithID)
-- Speed in knots.
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()
Speed=Speed or self:GetSpeedCruise()
-- Alt type default is barometric (ASL). For helos we use radar (AGL).
local alttype=COORDINATE.WaypointAltType.BARO