mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2026-08-20 07:43:01 +00:00
fixes
This commit is contained in:
@@ -2048,7 +2048,7 @@ function ctld.repackVehicleRequest(_params) -- update rrs table 'repackReque
|
|||||||
ctld.logTrace("FG_ ctld.repackVehicleRequest = %s", ctld.p(mist.utils.tableShow(ctld.repackRequestsStack)))
|
ctld.logTrace("FG_ ctld.repackVehicleRequest = %s", ctld.p(mist.utils.tableShow(ctld.repackRequestsStack)))
|
||||||
end
|
end
|
||||||
-- ***************************************************************
|
-- ***************************************************************
|
||||||
function ctld.repackVehicle(_params,t) -- scan rrs table 'repackRequestsStack' to process each request
|
function ctld.repackVehicle(_params, t) -- scan rrs table 'repackRequestsStack' to process each request
|
||||||
trigger.action.outText("Repacking vehicle...", 10)
|
trigger.action.outText("Repacking vehicle...", 10)
|
||||||
if t == nil then
|
if t == nil then
|
||||||
t = timer.getTime()
|
t = timer.getTime()
|
||||||
@@ -2083,7 +2083,11 @@ function ctld.repackVehicle(_params,t) -- scan rrs table 'repackRequestsStack'
|
|||||||
ctld.repackRequestsStack[ii] = nil
|
ctld.repackRequestsStack[ii] = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return 3 -- reschedule the function in 3 seconds
|
if ctld.enableRepackingVehicles == true then
|
||||||
|
return t + 3 -- reschedule the function in 3 seconds
|
||||||
|
else
|
||||||
|
return nil --stop scheduling
|
||||||
|
end
|
||||||
end
|
end
|
||||||
--[[ ***************************************************************
|
--[[ ***************************************************************
|
||||||
function ctld.repackVehicle_old(_params)
|
function ctld.repackVehicle_old(_params)
|
||||||
|
|||||||
Reference in New Issue
Block a user