From 1d14f21e256275b8dd5df2106c6a1d098c44b376 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Sat, 28 May 2016 13:24:11 +0200 Subject: [PATCH] Allow raising terrain to 64 in-game units, fixes #3568, fixes #3455 (#3764) --- src/world/map.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/world/map.c b/src/world/map.c index 65e0dc74e1..0a817d4b6d 100644 --- a/src/world/map.c +++ b/src/world/map.c @@ -1649,7 +1649,8 @@ static money32 map_set_land_height(int flags, int x, int y, int height, int styl return MONEY32_UNDEFINED; } - if (height > 62) { + // Divide by 2 and subtract 7 to get the ingame units. + if (height > 142) { gGameCommandErrorText = STR_TOO_HIGH; return MONEY32_UNDEFINED; } 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; } - if (height == 60 && (style & 0x10)) { + if (height == 140 && (style & 0x10)) { gGameCommandErrorText = STR_TOO_HIGH; return MONEY32_UNDEFINED; }