mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-20 17:07:54 +00:00
xx
This commit is contained in:
@@ -1423,7 +1423,7 @@ CTLD.FixedWingTypes = {
|
|||||||
|
|
||||||
--- CTLD class version.
|
--- CTLD class version.
|
||||||
-- @field #string version
|
-- @field #string version
|
||||||
CTLD.version="1.3.40"
|
CTLD.version="1.3.41"
|
||||||
|
|
||||||
--- Instantiate a new CTLD.
|
--- Instantiate a new CTLD.
|
||||||
-- @param #CTLD self
|
-- @param #CTLD self
|
||||||
@@ -2611,7 +2611,7 @@ end
|
|||||||
self:T(self.lid .. " _ExtractTroops")
|
self:T(self.lid .. " _ExtractTroops")
|
||||||
-- landed or hovering over load zone?
|
-- landed or hovering over load zone?
|
||||||
local grounded = not self:IsUnitInAir(Unit)
|
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
|
local hassecondaries = false
|
||||||
|
|
||||||
if not grounded and not hoverload then
|
if not grounded and not hoverload then
|
||||||
@@ -7007,6 +7007,7 @@ end
|
|||||||
-- @return #boolean Outcome
|
-- @return #boolean Outcome
|
||||||
function CTLD:IsCorrectHover(Unit)
|
function CTLD:IsCorrectHover(Unit)
|
||||||
self:T(self.lid .. " IsCorrectHover")
|
self:T(self.lid .. " IsCorrectHover")
|
||||||
|
if self:IsFixedWing(Unit) then return false end -- FW cannot hover
|
||||||
local outcome = false
|
local outcome = false
|
||||||
-- see if we are in air and within parameters.
|
-- see if we are in air and within parameters.
|
||||||
if self:IsUnitInAir(Unit) then
|
if self:IsUnitInAir(Unit) then
|
||||||
|
|||||||
@@ -2439,7 +2439,7 @@ end
|
|||||||
-- @return #table The mission route defined by points.
|
-- @return #table The mission route defined by points.
|
||||||
function GROUP:GetTaskRoute()
|
function GROUP:GetTaskRoute()
|
||||||
--self:F2( self.GroupName )
|
--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 )
|
return UTILS.DeepCopy( _DATABASE.Templates.Groups[self.GroupName].Template.route.points )
|
||||||
else
|
else
|
||||||
return {}
|
return {}
|
||||||
|
|||||||
Reference in New Issue
Block a user