fix: CP-startpunkt skiftes til sidste waypoint efter start og ved genstart (v1.62.14)
This commit is contained in:
@@ -1142,7 +1142,7 @@ function ADFieldWork.resumeAfterLoad(adEnv)
|
||||
tostring(rig.label), distance ~= nil and string.format("%.0f m", distance) or "ukendt afstand")
|
||||
elseif wasWorking and not rig.busy and not rig.controlled then
|
||||
local ok, started
|
||||
if toStart ~= nil then ok, started = pcall(ADCpResume.startNearest, vehicle)
|
||||
if toStart ~= nil then ok, started = pcall(ADCpResume.startAtLast, vehicle)
|
||||
else ok, started = pcall(vehicle.startCpAtLastWp, vehicle) end
|
||||
if not ok then
|
||||
Logging.warning(ADFieldJobs.LOG_PREFIX .. "'%s' kunne ikke genstartes: %s", tostring(rig.label), tostring(started))
|
||||
@@ -1164,8 +1164,7 @@ function ADFieldWork.resumeAfterLoad(adEnv)
|
||||
log(fieldId, "'%s' fortsætter efter genindlæsning (Courseplay fra sidste waypoint)%s", tostring(rig.label),
|
||||
assignment.storeId ~= nil and "" or (fillType ~= nil and " — intet lager til resten fundet" or ""))
|
||||
else
|
||||
Logging.info(ADFieldJobs.LOG_PREFIX .. "'%s' genstartet fra %s waypoint efter genindlæsning", tostring(rig.label),
|
||||
toStart ~= nil and "nærmeste" or "sidste")
|
||||
Logging.info(ADFieldJobs.LOG_PREFIX .. "'%s' genstartet fra sidste waypoint efter genindlæsning", tostring(rig.label))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user