From 7297fc86e93ac03f202815d911440fb41c05bb0a Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Sun, 4 Oct 2015 20:22:50 +0100 Subject: [PATCH] Fix #2029. Issue with 1x1 land ownership tool --- src/world/map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/world/map.c b/src/world/map.c index 41e38d50df..5960a433a7 100644 --- a/src/world/map.c +++ b/src/world/map.c @@ -1727,8 +1727,8 @@ money32 map_set_land_ownership(uint8 flags, sint16 x1, sint16 y1, sint16 x2, sin RCT2_GLOBAL(0x009E2E28, uint8) = 0; - for (sint16 y = y1; y < y2; y += 32) { - for (sint16 x = x1; x < x2; x += 32) { + for (sint16 y = y1; y <= y2; y += 32) { + for (sint16 x = x1; x <= x2; x += 32) { if (x > RCT2_GLOBAL(RCT2_ADDRESS_MAP_SIZE_UNITS, sint16)) continue; if (y > RCT2_GLOBAL(RCT2_ADDRESS_MAP_SIZE_UNITS, sint16))