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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user