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 eeedc1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/templates/properties_vehicle.pynml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ 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;
<!--! note that power cannot be 0 for engines, even this violates spec as of Nov 2022
- for details see https://github.com/OpenTTD/OpenTTD/issues/10146 -->
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 eeedc1c

Please sign in to comment.