- SetTask --> PushTask to keep enroute tasks alive.
This commit is contained in:
Frank
2020-03-01 23:55:15 +01:00
parent 905095add9
commit dc3350a1c8
2 changed files with 3 additions and 3 deletions
@@ -3981,7 +3981,7 @@ end
-- @param #WAREHOUSE.Assetitem asset The asset that has just been added.
-- @param #string assignment The (optional) assignment for the asset.
function WAREHOUSE:onafterNewAsset(From, Event, To, asset, assignment)
self:I(self.lid..string.format("New asset %s id=%d with assignment %s.", tostring(asset.templatename), asset.uid, tostring(assignment)))
self:T(self.lid..string.format("New asset %s id=%d with assignment %s.", tostring(asset.templatename), asset.uid, tostring(assignment)))
end
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+2 -2
View File
@@ -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