From eeedc1c23f54d8b494e1d9c30660bfa76df28bfb Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 7 Nov 2022 14:12:57 +0000 Subject: [PATCH] Fix: some articulated engines were picking up incorrect company colour for trailing parts following aebd97a15df3d30004f062ed97ce18d3dcc6d2b7; set trailing unit action 0 power to 1 hp for engines, this violates the spec which requires trailing unit power to be 0, but fixes the issue; see also https://github.com/OpenTTD/OpenTTD/issues/10146 --- src/templates/properties_vehicle.pynml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/templates/properties_vehicle.pynml b/src/templates/properties_vehicle.pynml index 1e5e77d01..5986ab232 100644 --- a/src/templates/properties_vehicle.pynml +++ b/src/templates/properties_vehicle.pynml @@ -96,7 +96,9 @@ item(FEAT_TRAINS, ${vehicle.id}, ${vehicle.numeric_id}) { - power: 0; + + power: ${1 if consist.power is not 0 else 0}; weight: 0; tractive_effort_coefficient: 0; cost_factor: 0;