mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 05:23:04 +01:00
Named map arrow globals
This commit is contained in:
@@ -199,6 +199,11 @@
|
||||
#define RCT2_ADDRESS_MAP_SELECTION_B_Y 0x009DE592
|
||||
#define RCT2_ADDRESS_MAP_SELECTION_TYPE 0x009DE594
|
||||
|
||||
#define RCT2_ADDRESS_MAP_ARROW_X 0x009DEA48
|
||||
#define RCT2_ADDRESS_MAP_ARROW_Y 0x009DEA4A
|
||||
#define RCT2_ADDRESS_MAP_ARROW_Z 0x009DEA4C
|
||||
#define RCT2_ADDRESS_MAP_ARROW_DIRECTION 0x009DEA4E
|
||||
|
||||
#define RCT2_ADDRESS_SCREEN_FLAGS 0x009DEA68
|
||||
#define RCT2_ADDRESS_SCREENSHOT_COUNTDOWN 0x009DEA6D
|
||||
// Note: not only the zeroth bit can be set to control pause
|
||||
|
||||
@@ -727,9 +727,9 @@ static void window_footpath_set_selection_start_bridge_at_point(int screenX, int
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_MAP_SELECTION_A_Y, uint16) = y;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_MAP_SELECTION_B_Y, uint16) = y;
|
||||
|
||||
RCT2_GLOBAL(0x009DEA4E, uint8) = direction;
|
||||
RCT2_GLOBAL(0x009DEA48, uint16) = x;
|
||||
RCT2_GLOBAL(0x009DEA4A, uint16) = y;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_MAP_ARROW_DIRECTION, uint8) = direction;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_MAP_ARROW_X, uint16) = x;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_MAP_ARROW_Y, uint16) = y;
|
||||
|
||||
int z = mapElement->base_height;
|
||||
|
||||
@@ -741,7 +741,7 @@ static void window_footpath_set_selection_start_bridge_at_point(int screenX, int
|
||||
z += 2; // Add another 2 for a steep slope
|
||||
}
|
||||
|
||||
RCT2_GLOBAL(0x009DEA4C, uint16) = z << 3;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_MAP_ARROW_Z, uint16) = z << 3;
|
||||
|
||||
map_invalidate_selection_rect();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user