Fix #1213 once and for all.

Forgot to check that the tool in use was the set land rights tool.
This commit is contained in:
Duncan Frost committed 2015-06-04 20:15:23 +01:00
1 parent b688b1eb5f
commit cd753e13e4
1 file changed
+1
+1
View File
@@ -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;