fix: CP-bredde genberegnes før start; kontrakt køres igen til den er færdig (1.62.219)
This commit is contained in:
@@ -1375,6 +1375,10 @@ local function beginWork(adEnv, field, info, assignment)
|
||||
local vx, vz = vehiclePosition(assignment.vehicle)
|
||||
local cropStage = field.stage == "harvesting" or field.stage == "mowing"
|
||||
local point = ADFieldJobs.coursePoint(info.points, vx, vz, cropStage and info.fruitIndex or nil) or {x = info.x, z = info.z}
|
||||
-- kontrakt der køres igen: markpunktet længst væk (spillets markkant fandt kun det stykke, maskinen står på)
|
||||
if field.contract and (field.contractPasses or 0) > 0 then
|
||||
point = ADFieldJobs.farthestPoint(info.points, vx, vz) or point
|
||||
end
|
||||
-- genbrug af Courseplay-kurser: maskinens eget / en andens matchende kursus frem for ny beregning
|
||||
local cacheContext
|
||||
opts, cacheContext = ADCourseCache.prepare(adEnv, field, info, assignment, opts)
|
||||
|
||||
Reference in New Issue
Block a user