mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-12 04:31:09 +00:00
FG
- SetTask --> PushTask to keep enroute tasks alive.
This commit is contained in:
@@ -2354,7 +2354,7 @@ function FLIGHTGROUP:onafterPassingWaypoint(From, Event, To, n, N)
|
||||
|
||||
-- Execute waypoint tasks.
|
||||
if #taskswp>0 then
|
||||
self:SetTask(self.group:TaskCombo(taskswp))
|
||||
self:PushTask(self.group:TaskCombo(taskswp))
|
||||
end
|
||||
|
||||
end
|
||||
@@ -2954,7 +2954,7 @@ function FLIGHTGROUP:onafterTaskExecute(From, Event, To, Task)
|
||||
local TaskFinal=self.group:TaskCombo({TaskControlled, TaskDone})
|
||||
|
||||
-- Set task for group.
|
||||
self:SetTask(TaskFinal, 1)
|
||||
self:PushTask(TaskFinal, 1)
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user