fix: bak-fri-trinnet lægges i AD's kø før køretøjet vækkes (v1.62.78)

This commit is contained in:
2026-10-08 09:44:59 +02:00
parent 1c33977ce8
commit a11a867f8e
4 changed files with 11 additions and 4 deletions
+3 -2
View File
@@ -128,12 +128,13 @@ local function startAd(adEnv, vehicle, mode, firstId, secondId, fillType)
else
vehicle:startAutoDrive()
end
wake(vehicle, true)
-- "Kør til" med et løst frontredskab lige foran (fx lige sat af ved "P Front Mower"): bak fri først (8/10)
-- "Kør til" med et løst frontredskab lige foran (fx lige sat af ved "P Front Mower"): bak fri først (8/10).
-- FØR wake: vækningen kører AD's onUpdate, og så er køreopgaven allerede taget i brug (in-game 8/10 v1.62.77)
if mode == adEnv.AutoDrive.MODE_DRIVETO and ADHitchCreep ~= nil and ADHitchCreep.backOffIfBlocked ~= nil then
local ok, err = pcall(ADHitchCreep.backOffIfBlocked, adEnv, vehicle)
if not ok then Logging.warning("ADSmartPickup: bak fri af frontredskab: %s", tostring(err)) end
end
wake(vehicle, true)
end
ADFieldWork.startAd = startAd