1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Allow raising terrain to 64 in-game units, fixes #3568, fixes #3455 (#3764)

This commit is contained in:
Michael Steenbeek
2016-05-28 13:24:11 +02:00
committed by Ted John
parent 1cdbd1e459
commit 1d14f21e25

View File

@@ -1649,7 +1649,8 @@ static money32 map_set_land_height(int flags, int x, int y, int height, int styl
return MONEY32_UNDEFINED; return MONEY32_UNDEFINED;
} }
if (height > 62) { // Divide by 2 and subtract 7 to get the ingame units.
if (height > 142) {
gGameCommandErrorText = STR_TOO_HIGH; gGameCommandErrorText = STR_TOO_HIGH;
return MONEY32_UNDEFINED; return MONEY32_UNDEFINED;
} else if (height == 62 && (style & 0x1F) != 0) { } else if (height == 62 && (style & 0x1F) != 0) {
@@ -1657,7 +1658,7 @@ static money32 map_set_land_height(int flags, int x, int y, int height, int styl
return MONEY32_UNDEFINED; return MONEY32_UNDEFINED;
} }
if (height == 60 && (style & 0x10)) { if (height == 140 && (style & 0x10)) {
gGameCommandErrorText = STR_TOO_HIGH; gGameCommandErrorText = STR_TOO_HIGH;
return MONEY32_UNDEFINED; return MONEY32_UNDEFINED;
} }