From 1ca07018c35a566a7d6e86916ca401e4f22d8568 Mon Sep 17 00:00:00 2001 From: glx22 Date: Mon, 15 Sep 2025 23:21:31 +0200 Subject: [PATCH] Add: FEAT_AIRCRAFT flight_state variable (varE2) --- nml/actions/action2var_variables.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nml/actions/action2var_variables.py b/nml/actions/action2var_variables.py index ba200f45b..c565ce423 100644 --- a/nml/actions/action2var_variables.py +++ b/nml/actions/action2var_variables.py @@ -212,6 +212,7 @@ def unsigned_tile_offset(name, args, pos, info): 'max_speed' : {'var': 0x98, 'start': 0, 'size': 16, 'value_function': value_mul_div(0x3939, 0x1000)}, 'current_speed' : {'var': 0xB4, 'start': 0, 'size': 16, 'value_function': value_mul_div(0x3939, 0x1000)}, 'current_max_speed' : {'var': 0x4C, 'start': 0, 'size': 16, 'value_function': value_mul_div(0x3939, 0x1000)}, + 'flight_state' : {'var': 0xE2, 'start': 0, 'size': 8}, 'vehicle_is_in_depot' : {'var': 0xE6, 'start': 0, 'size': 8, 'value_function': value_equals(0)}, }