Skip to content

Commit

Permalink
Fix: some articulated engines were picking up incorrect company colou…
Browse files Browse the repository at this point in the history
…r for trailing parts following aebd97a; 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 OpenTTD/OpenTTD#10146
  • Loading branch information
andythenorth committed Nov 7, 2022
1 parent 8ec43ce commit a4bb9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/properties_vehicle.pynml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ item(FEAT_TRAINS, ${vehicle.id}, ${vehicle.numeric_id}) {
</tal:lead_unit_of_consist_only>
<tal:trailing_parts_of_consist_only condition="not vehicle.is_lead_unit_of_consist">
<!--! some properties must be explicitly set to 0 for trailing parts -->
power: 0;
power: ${1 if consist.power is not 0 else 0};
weight: 0;
tractive_effort_coefficient: 0;
cost_factor: 0;
Expand Down

0 comments on commit a4bb9a8

Please sign in to comment.