From 9017e5ff86d46a5e47128b4b15d81cc280189224 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Sun, 4 Oct 2015 20:44:17 +0100 Subject: [PATCH] Fix #1899. Prevent mountain tool from being possible for land ownership tool. --- src/windows/map.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/windows/map.c b/src/windows/map.c index 7f69195056..f7d8728b1b 100644 --- a/src/windows/map.c +++ b/src/windows/map.c @@ -258,6 +258,8 @@ static void window_map_mouseup(rct_window *w, int widgetIndex) if (tool_set(w, widgetIndex, 2)) break; RCT2_GLOBAL(0xF1AD61, sint8) = 2; + // Prevent mountain tool tool size. + RCT2_GLOBAL(RCT2_ADDRESS_LAND_TOOL_SIZE, sint16) = max(MINIMUM_TOOL_SIZE, RCT2_GLOBAL(RCT2_ADDRESS_LAND_TOOL_SIZE, sint16)); show_gridlines(); show_land_rights(); show_construction_rights();