From 72584017170cb855d4f34c4f128e9759b4d66b01 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 24 Apr 2024 21:28:33 +0100 Subject: [PATCH] Add: Constants and varact2 variable associated with road waypoints --- 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 8ce814a6..c1025478 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' : {'var': 0x5F, 'start': 8, 'size': 24}, '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,