From ba7da941be327e65011e8c0827c6f269436fee5a Mon Sep 17 00:00:00 2001 From: Andy Date: Fri, 30 May 2025 20:45:14 +0100 Subject: [PATCH] Change: add support for vehicle var 0x65 (OpenTTD #14312) --- nml/actions/action2var_variables.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nml/actions/action2var_variables.py b/nml/actions/action2var_variables.py index 24fdec60..16dd893e 100644 --- a/nml/actions/action2var_variables.py +++ b/nml/actions/action2var_variables.py @@ -255,6 +255,7 @@ def badge_parameter(name, args, pos, info): 'tile_supports_railtype' : {'var': 0x63, 'start': 1, 'size': 1, 'param_function':vehicle_railtype}, 'tile_powers_railtype' : {'var': 0x63, 'start': 2, 'size': 1, 'param_function':vehicle_railtype}, 'tile_is_railtype' : {'var': 0x63, 'start': 3, 'size': 1, 'param_function':vehicle_railtype}, + 'tile_has_railtype_badge': {'var': 0x65, 'start': 0, 'size': 1, 'param_function':badge_parameter}, } varact2vars60x_roadvehs = { @@ -266,6 +267,8 @@ def badge_parameter(name, args, pos, info): 'tile_powers_tramtype' : {'var': 0x63, 'start': 2, 'size': 1, 'param_function':vehicle_tramtype}, 'tile_is_roadtype' : {'var': 0x63, 'start': 3, 'size': 1, 'param_function':vehicle_roadtype}, 'tile_is_tramtype' : {'var': 0x63, 'start': 3, 'size': 1, 'param_function':vehicle_tramtype}, + 'tile_has_roadtype_badge': {'var': 0x65, 'start': 0, 'size': 1, 'param_function':badge_parameter}, + 'tile_has_tramtype_badge': {'var': 0x65, 'start': 0, 'size': 1, 'param_function':badge_parameter}, } #