From 0a51752bd98cba00c62d7637441ffb482bc3d5d8 Mon Sep 17 00:00:00 2001 From: IntelOrca Date: Wed, 26 Nov 2014 21:46:38 +0000 Subject: [PATCH] fix map shortcut, fixes #599 --- src/interface/keyboard_shortcut.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/interface/keyboard_shortcut.c b/src/interface/keyboard_shortcut.c index 0ee2609432..bd0cfdeaf2 100644 --- a/src/interface/keyboard_shortcut.c +++ b/src/interface/keyboard_shortcut.c @@ -379,17 +379,9 @@ static void shortcut_show_recent_messages() static void shortcut_show_map() { - rct_window *window; - - if (!(RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & SCREEN_FLAGS_SCENARIO_EDITOR) || RCT2_GLOBAL(0x0141F570, uint8) == 1) { - if (!(RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER))) { - window = window_find_by_class(WC_TOP_TOOLBAR); - if (window != NULL) { - window_invalidate(window); - window_event_mouse_up_call(window, 6); - } - } - } + if (!(RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & SCREEN_FLAGS_SCENARIO_EDITOR) || RCT2_GLOBAL(0x0141F570, uint8) == 1) + if (!(RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER))) + window_map_open(); } static void shortcut_screenshot()