From 4d6fe34b65d40115fdfb564f5f940a485525d72e Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 10 Jul 2024 00:46:18 +0100 Subject: [PATCH] Add: Constants and varact2 variable associated with road waypoints (#327) --- nml/actions/action2var_variables.py | 2 ++ nml/global_constants.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/nml/actions/action2var_variables.py b/nml/actions/action2var_variables.py index 3e2dafdb..47acd0e0 100644 --- a/nml/actions/action2var_variables.py +++ b/nml/actions/action2var_variables.py @@ -807,6 +807,8 @@ def industry_cargotype(name, args, pos, info): 'animation_frame' : {'var': 0x49, 'start': 0, 'size': 8}, + 'drawn_in_gui' : {'var': 0x50, 'start': 4, 'size': 1}, + 'waiting_triggers' : {'var': 0x5F, 'start': 0, 'size': 8}, 'random_bits_tile' : {'var': 0x5F, 'start': 24, 'size': 8}, } diff --git a/nml/global_constants.py b/nml/global_constants.py index 8b28ee3e..47cabd35 100644 --- a/nml/global_constants.py +++ b/nml/global_constants.py @@ -1152,9 +1152,11 @@ def constant_number(name, info, pos): "RST_TYPE_BUS" : 0, "RST_TYPE_TRUCK" : 1, + "RST_TYPE_WAYPOINT" : 2, "RST_DRAW_FLAG_BAY_ROAD" : 0, "RST_DRAW_FLAG_DRIVE_THROUGH_ROAD_OVERLAY" : 1, + "RST_DRAW_FLAG_WAYPOINT_GROUND" : 2, "RST_GENERAL_FLAG_RANDOM_ANIMATION" : 0, "RST_GENERAL_FLAG_NO_CATENARY" : 2, @@ -1162,6 +1164,7 @@ def constant_number(name, info, pos): "RST_GENERAL_FLAG_NO_AUTO_ROAD_CONNECTION" : 4, "RST_GENERAL_FLAG_BUILD_MENU_ROAD_ONLY" : 5, "RST_GENERAL_FLAG_BUILD_MENU_TRAM_ONLY" : 6, + "RST_GENERAL_FLAG_DRAW_MODE_REGISTER" : 8, "RST_VIEW_BAY_NE" : 0, "RST_VIEW_BAY_SE" : 1,