Merge branch 'FF/Ops' into FF/OpsDev

This commit is contained in:
Frank
2021-11-07 18:24:48 +01:00
25 changed files with 191446 additions and 892 deletions

View File

@@ -563,12 +563,12 @@ function GROUP:GetSpeedMax()
local Units=self:GetUnits()
local speedmax=nil
local speedmax=0
for _,unit in pairs(Units) do
local unit=unit --Wrapper.Unit#UNIT
local speed=unit:GetSpeedMax()
if speedmax==nil then
if speedmax==0 then
speedmax=speed
elseif speed<speedmax then
speedmax=speed

View File

@@ -442,7 +442,7 @@ function UNIT:GetSpeedMax()
return SpeedMax*3.6
end
return nil
return 0
end
--- Returns the unit's max range in meters derived from the DCS descriptors.