ATIS - addede rainy presets 1-3

CTLD - avoid "preloading" when pilot leaves/crashes and rejoins
CSAR - added option for autosmokedistance
This commit is contained in:
Applevangelist
2021-07-04 18:04:08 +02:00
parent e14d655447
commit 4ba52212a9

View File

@@ -513,7 +513,7 @@ CTLD.SkipFrequencies = {
--- CTLD class version. --- CTLD class version.
-- @field #string version -- @field #string version
CTLD.version="0.1.3r1" CTLD.version="0.1.4r1"
--- Instantiate a new CTLD. --- Instantiate a new CTLD.
-- @param #CTLD self -- @param #CTLD self
@@ -926,6 +926,8 @@ function CTLD:_EventHandler(EventData)
local _unit = event.IniUnit local _unit = event.IniUnit
local _group = event.IniGroup local _group = event.IniGroup
if _unit:IsHelicopter() or _group:IsHelicopter() then if _unit:IsHelicopter() or _group:IsHelicopter() then
local unitname = event.IniUnitName or "none"
self.Loaded_Cargo[unitname] = nil
self:_RefreshF10Menus() self:_RefreshF10Menus()
end end
-- Herc support -- Herc support
@@ -938,6 +940,7 @@ function CTLD:_EventHandler(EventData)
-- remove from pilot table -- remove from pilot table
local unitname = event.IniUnitName or "none" local unitname = event.IniUnitName or "none"
self.CtldUnits[unitname] = nil self.CtldUnits[unitname] = nil
self.Loaded_Cargo[unitname] = nil
end end
return self return self
end end