mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
4d4b8862c2
@ -480,7 +480,8 @@ function ZONE_BASE:UndrawZone(Delay)
|
|||||||
if Delay and Delay>0 then
|
if Delay and Delay>0 then
|
||||||
self:ScheduleOnce(Delay, ZONE_BASE.UndrawZone, self)
|
self:ScheduleOnce(Delay, ZONE_BASE.UndrawZone, self)
|
||||||
else
|
else
|
||||||
if self.DrawID and type(self.DrawID) ~= "table" then
|
if self.DrawID then
|
||||||
|
if type(self.DrawID) ~= "table" then
|
||||||
UTILS.RemoveMark(self.DrawID)
|
UTILS.RemoveMark(self.DrawID)
|
||||||
else -- DrawID is a table with a collections of mark ids, as used in ZONE_POLYGON
|
else -- DrawID is a table with a collections of mark ids, as used in ZONE_POLYGON
|
||||||
for _, mark_id in pairs(self.DrawID) do
|
for _, mark_id in pairs(self.DrawID) do
|
||||||
@ -488,6 +489,7 @@ function ZONE_BASE:UndrawZone(Delay)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -2863,9 +2863,12 @@ function FLIGHTGROUP:_CheckGroupDone(delay, waittime)
|
|||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
|
-- Check if not parking (could be on ALERT5 and just spawned (current mission=nil)
|
||||||
|
if not self:IsParking() then
|
||||||
self:T(self.lid..string.format("Passed Final WP but Tasks=%d or Missions=%d left in the queue. Wait!", nTasks, nMissions))
|
self:T(self.lid..string.format("Passed Final WP but Tasks=%d or Missions=%d left in the queue. Wait!", nTasks, nMissions))
|
||||||
self:__Wait(-1)
|
self:__Wait(-1)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
else
|
else
|
||||||
self:T(self.lid..string.format("Passed Final WP but still have current Task (#%s) or Mission (#%s) left to do", tostring(self.taskcurrent), tostring(self.currentmission)))
|
self:T(self.lid..string.format("Passed Final WP but still have current Task (#%s) or Mission (#%s) left to do", tostring(self.taskcurrent), tostring(self.currentmission)))
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user