Skip to content

Commit 99c42d4

Browse files
committed
Add formation_current_power to varact2 for trains
OpenTTD has had these vars exposed since r3594 so I think we should be good to go on it.
1 parent 0e774fc commit 99c42d4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

nml/actions/action2var_variables.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ def unsigned_tile_offset(name, args, pos, info):
180180
'current_railtype' : {'var': 0x4A, 'start': 0, 'size': 8},
181181
'current_max_speed' : {'var': 0x4C, 'start': 0, 'size': 16, 'value_function': value_mul_div(0x4786, 0x10000)},
182182
'vehicle_is_in_depot' : {'var': 0xE2, 'start': 7, 'size': 1},
183+
'consist_current_power' : {'var': 0xF4, 'start': 0, 'size': 32},
183184
}
184185

185186
varact2vars_roadvehs = {

0 commit comments

Comments
 (0)