fix: variabel-bredde uden sektioner måles på AI-markører (Unrealistic _MD med fast 50 m) (v1.62.122)

This commit is contained in:
2026-10-09 18:02:49 +02:00
parent d5fa3f8f16
commit db37b4b117
3 changed files with 5 additions and 1 deletions
+3
View File
@@ -425,6 +425,9 @@ end
-- grundbredden (læssevogn 2,4 m selv om den er sat til 40,8 m).
local function variableWidth(object)
if object.getVariableWorkWidth == nil then return nil end
-- uden sektioner (fx vores _MD-udgave af Unrealistic med fast bredde) er AI-markørerne den rigtige bredde
local spec = object.spec_variableWorkWidth
if spec ~= nil and (type(spec.sections) ~= "table" or #spec.sections == 0) then return nil end
local okLeft, left, _, leftValid = pcall(object.getVariableWorkWidth, object, true)
local okRight, right, _, rightValid = pcall(object.getVariableWorkWidth, object)
if okLeft and okRight and leftValid and rightValid and type(left) == "number" and type(right) == "number" then
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<modDesc descVersion="107">
<author>masterdraco</author>
<version>1.62.121.0</version>
<version>1.62.122.0</version>
<title>
<en>AD Smart Pickup</en>
</title>