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.
-- @field #string version
CTLD.version="0.1.3r1"
CTLD.version="0.1.4r1"
--- Instantiate a new CTLD.
-- @param #CTLD self
@ -926,6 +926,8 @@ function CTLD:_EventHandler(EventData)
local _unit = event.IniUnit
local _group = event.IniGroup
if _unit:IsHelicopter() or _group:IsHelicopter() then
local unitname = event.IniUnitName or "none"
self.Loaded_Cargo[unitname] = nil
self:_RefreshF10Menus()
end
-- Herc support
@ -938,6 +940,7 @@ function CTLD:_EventHandler(EventData)
-- remove from pilot table
local unitname = event.IniUnitName or "none"
self.CtldUnits[unitname] = nil
self.Loaded_Cargo[unitname] = nil
end
return self
end
@ -2559,4 +2562,4 @@ end
end -- end do
-------------------------------------------------------------------
-- End Ops.CTLD.lua
-------------------------------------------------------------------
-------------------------------------------------------------------