1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00

integrate map selection variables

This commit is contained in:
Ted John
2016-05-14 00:54:13 +01:00
parent 60235d9735
commit 81efb92d53
21 changed files with 467 additions and 406 deletions

View File

@@ -64,7 +64,7 @@ void viewport_init_all()
gPressedWidget.window_classification = 255;
gPickupPeepImage = UINT32_MAX;
gTooltipNotShownTicks = -1;
RCT2_GLOBAL(RCT2_ADDRESS_MAP_SELECTION_FLAGS, sint16) = 0;
gMapSelectFlags = 0;
RCT2_GLOBAL(0x009DEA50, sint16) = -1;
textinput_cancel();
format_string((char*)0x0141FA44, STR_CANCEL, NULL);

View File

@@ -1798,7 +1798,7 @@ void tool_cancel()
map_invalidate_map_selection_tiles();
// Reset map selection
RCT2_GLOBAL(RCT2_ADDRESS_MAP_SELECTION_FLAGS, uint16) = 0;
gMapSelectFlags = 0;
if (gCurrentToolWidget.widget_index != -1) {
// Invalidate tool widget