From cd753e13e4844fae7cf937dfbeeb823d5c4ae934 Mon Sep 17 00:00:00 2001 From: Duncan Frost Date: Thu, 4 Jun 2015 17:09:47 +0100 Subject: [PATCH] Fix #1213 once and for all. Forgot to check that the tool in use was the set land rights tool. --- src/windows/map.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/windows/map.c b/src/windows/map.c index c32d536343..89c2d02e8c 100644 --- a/src/windows/map.c +++ b/src/windows/map.c @@ -642,6 +642,7 @@ static void window_map_paint() // FEATURE larger land tool size support if (RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) & INPUT_FLAG_TOOL_ACTIVE && + RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint8) == WIDX_SET_LAND_RIGHTS && (RCT2_GLOBAL(RCT2_ADDRESS_LAND_TOOL_SIZE, sint16) > 7) && (RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, uint8) == WC_MAP)) { RCT2_GLOBAL(0x009BC677, char) = FORMAT_BLACK;