diff --git a/src/addresses.h b/src/addresses.h index 94ab6853b4..02e5dbdb84 100644 --- a/src/addresses.h +++ b/src/addresses.h @@ -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 diff --git a/src/windows/footpath.c b/src/windows/footpath.c index 3374cffb24..0dc81edbc0 100644 --- a/src/windows/footpath.c +++ b/src/windows/footpath.c @@ -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(); }