Skip to content

Commit aa560ff

Browse files
committed
Change: add support for vehicle var 0x65 (OpenTTD #14312)
1 parent 354d8c0 commit aa560ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nml/actions/action2var_variables.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ def badge_parameter(name, args, pos, info):
254254
'tile_supports_railtype' : {'var': 0x63, 'start': 1, 'size': 1, 'param_function':vehicle_railtype},
255255
'tile_powers_railtype' : {'var': 0x63, 'start': 2, 'size': 1, 'param_function':vehicle_railtype},
256256
'tile_is_railtype' : {'var': 0x63, 'start': 3, 'size': 1, 'param_function':vehicle_railtype},
257+
'tile_has_railtype_badge': {'var': 0x65, 'start': 0, 'size': 1, 'param_function':badge_parameter},
257258
}
258259

259260
varact2vars60x_roadvehs = {
@@ -265,6 +266,8 @@ def badge_parameter(name, args, pos, info):
265266
'tile_powers_tramtype' : {'var': 0x63, 'start': 2, 'size': 1, 'param_function':vehicle_tramtype},
266267
'tile_is_roadtype' : {'var': 0x63, 'start': 3, 'size': 1, 'param_function':vehicle_roadtype},
267268
'tile_is_tramtype' : {'var': 0x63, 'start': 3, 'size': 1, 'param_function':vehicle_tramtype},
269+
'tile_has_roadtype_badge': {'var': 0x65, 'start': 0, 'size': 1, 'param_function':badge_parameter},
270+
'tile_has_tramtype_badge': {'var': 0x65, 'start': 0, 'size': 1, 'param_function':badge_parameter},
268271
}
269272

270273
#

0 commit comments

Comments
 (0)