This commit is contained in:
Applevangelist
2025-12-07 13:23:23 +01:00
parent e72bd1738c
commit 7189154d47
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -1423,7 +1423,7 @@ CTLD.FixedWingTypes = {
--- CTLD class version.
-- @field #string version
CTLD.version="1.3.40"
CTLD.version="1.3.41"
--- Instantiate a new CTLD.
-- @param #CTLD self
@@ -2611,7 +2611,7 @@ end
self:T(self.lid .. " _ExtractTroops")
-- landed or hovering over load zone?
local grounded = not self:IsUnitInAir(Unit)
local hoverload = self:CanHoverLoad(Unit)
local hoverload = self:IsCorrectHover(Unit) -- correct call now for extracting troops while hovering
local hassecondaries = false
if not grounded and not hoverload then
@@ -7007,6 +7007,7 @@ end
-- @return #boolean Outcome
function CTLD:IsCorrectHover(Unit)
self:T(self.lid .. " IsCorrectHover")
if self:IsFixedWing(Unit) then return false end -- FW cannot hover
local outcome = false
-- see if we are in air and within parameters.
if self:IsUnitInAir(Unit) then
+1 -1
View File
@@ -2439,7 +2439,7 @@ end
-- @return #table The mission route defined by points.
function GROUP:GetTaskRoute()
--self:F2( self.GroupName )
if _DATABASE.Templates.Groups[self.GroupName].Template and _DATABASE.Templates.Groups[self.GroupName].Template.route and _DATABASE.Templates.Groups[self.GroupName].Template.route.points then
if _DATABASE.Templates.Groups[self.GroupName] and _DATABASE.Templates.Groups[self.GroupName].Template and _DATABASE.Templates.Groups[self.GroupName].Template.route and _DATABASE.Templates.Groups[self.GroupName].Template.route.points then
return UTILS.DeepCopy( _DATABASE.Templates.Groups[self.GroupName].Template.route.points )
else
return {}