From 9d2ceec19686a34ada6042e70a289d255ad70676 Mon Sep 17 00:00:00 2001 From: Marco Costa Date: Tue, 23 Sep 2014 21:48:14 -0400 Subject: [PATCH] Basic analysis of window_map_mousedown * This function doesn't appear to relevant for the normal map window, as it doesn't have the required widgets. Considering that the Scenario Editor has a more complex map window, I assume that this function does processing referred to that instance instead. --- src/window_map.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/window_map.c b/src/window_map.c index 556fbd8d67..91284ce9af 100644 --- a/src/window_map.c +++ b/src/window_map.c @@ -338,7 +338,14 @@ static void window_map_mouseup() */ static void window_map_mousedown(int widgetIndex, rct_window*w, rct_widget* widget) { - RCT2_CALLPROC_EBPSAFE(0x0068D040); + // The normal map window doesn't have widget 8 or 9. + // I assume these widgets refer to the Scenario Editor's map window. + if (widgetIndex == 8) { + RCT2_CALLPROC_EBPSAFE(0x0068D641); + } + else if (widgetIndex == 9) { + RCT2_CALLPROC_EBPSAFE(0x0068D6B4); + } } /**