fix: autoload-køretøjer måles i paller, ikke liter — en tom pallebil er ikke 'ingen vogn' (v1.12.8.0)

This commit is contained in:
2026-09-23 11:49:33 +02:00
parent 058795d4c3
commit 196c2cd847
8 changed files with 34 additions and 5 deletions
+4
View File
@@ -102,6 +102,10 @@ local function getVehicleCapacity(adEnv, vehicle)
hasAutoload = true
end
end
-- UAL opgiver antal paller (læssede + 1), ikke liter: liter-kapaciteten er ukendt for en pallebil
if hasAutoload and (capacity == nil or capacity < 100) then
capacity = nil
end
return capacity, hasAutoload, trailers
end