1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00
Measurement close is now correctly called when the ride measurement window is closed.
When quiting a scenario tool_cancel is called to also reset the scnery selection mode
This commit is contained in:
Duncan Frost
2015-05-20 19:18:54 +01:00
parent 56c3647215
commit d3587c2fc5
2 changed files with 2 additions and 1 deletions

View File

@@ -869,6 +869,7 @@ void game_load_or_quit_no_save_prompt()
load_game();
} else if (RCT2_GLOBAL(RCT2_ADDRESS_SAVE_PROMPT_MODE, uint16) == 1) {
game_do_command(0, 1, 0, 1, GAME_COMMAND_LOAD_OR_QUIT, 0, 0);
tool_cancel();
if (RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) & INPUT_FLAG_5) {
RCT2_CALLPROC_EBPSAFE(0x0040705E);
RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) &= ~INPUT_FLAG_5;

View File

@@ -796,7 +796,7 @@ static void* window_ride_music_events[] = {
// 0x0098DE14
static void* window_ride_measurements_events[] = {
window_ride_emptysub,
window_ride_measurements_close,
window_ride_measurements_mouseup,
window_ride_measurements_resize,
window_ride_measurements_mousedown,