feat: puljen må låne et stoppet flows vogne uanset type — 1.62.323

Brugervalg 17/10 17:15: de to BOSS ALPIN-opsamlere fra de stoppede kæde-flows stod i garagen, mens 12 græsmarker ventede på en opsamler. ADFlowWagons.isLendable: sovende ELLER stoppet flow -> lånes (isHeld uændret: andre flows adopterer ikke vognen). Manualer (da/en) og tests opdateret.
This commit is contained in:
2026-10-17 17:21:17 +02:00
parent 345c3e42a4
commit 7a893e2c02
6 changed files with 21 additions and 17 deletions
+1 -1
View File
@@ -593,7 +593,7 @@ function ADPool.collect(adEnv, isBusy)
local connect = park ~= nil and ADPool.connectFor(park.name, markers) or nil
local specs = connect ~= nil and ADCpBridge.getSpecs(vehicle) or nil
local role = specs ~= nil and ADPool.roleOf(specs) or nil
-- flowvogne: kun et sovende flows vogn må lånes (ADFlowWagons.isLendable)
-- flowvogne: kun et sovende eller stoppet flows vogn må lånes (ADFlowWagons.isLendable)
local held = role ~= nil and ADFlowWagons ~= nil and ADFlowWagons.isLendableWagon ~= nil
and not ADFlowWagons.isLendableWagon(ADRunsController.getVehicleId(vehicle), vehicle.spec_sprayer ~= nil)
if role ~= nil and not held and not targeted[connect.id] then