diff --git a/src/windows/map.c b/src/windows/map.c index 2efeb2caf7..2a02256038 100644 --- a/src/windows/map.c +++ b/src/windows/map.c @@ -369,14 +369,17 @@ static void window_map_mouseup() */ static void window_map_mousedown(int widgetIndex, rct_window*w, rct_widget* widget) { - // 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) { + // These widgets all refer to the Scenario Editor's map window. + if (widgetIndex == WIDX_MAP_SIZE_SPINNER_UP) { RCT2_CALLPROC_X(0x0068D641, 0, 0, 0, widgetIndex, (int)w, 0, 0); } - else if (widgetIndex == 9) { + else if (widgetIndex == WIDX_MAP_SIZE_SPINNER_DOWN) { RCT2_CALLPROC_X(0x0068D6B4, 0, 0, 0, widgetIndex, (int)w, 0, 0); } + else if (widgetIndex == WIDX_SET_LAND_RIGHTS) + { + RCT2_GLOBAL(RCT2_ADDRESS_LAND_TOOL_SIZE, sint16) = 1; + } } /**