1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00

Fix #2029. Issue with 1x1 land ownership tool

This commit is contained in:
duncanspumpkin
2015-10-04 20:22:50 +01:00
parent 928ef24684
commit 7297fc86e9

View File

@@ -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))