From b0f93a08d90596d728e483f9303977483e9238ef Mon Sep 17 00:00:00 2001 From: jensj12 Date: Sat, 29 Jul 2017 23:13:13 +0200 Subject: [PATCH] Use sint32 instead of int --- src/openrct2/world/map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/world/map.c b/src/openrct2/world/map.c index f7bec0a91c..622a8890ce 100644 --- a/src/openrct2/world/map.c +++ b/src/openrct2/world/map.c @@ -1657,8 +1657,8 @@ static money32 map_set_land_height(sint32 flags, sint32 x, sint32 y, sint32 heig } while (!map_element_is_last_for_tile(mapElement++)); } - for (int i = 0; i < 4; i += 1) { - int cornerHeight = map_element_get_corner_height(surfaceElement, i); + for (sint32 i = 0; i < 4; i += 1) { + sint32 cornerHeight = map_element_get_corner_height(surfaceElement, i); cornerHeight -= map_get_corner_height(height, style & MAP_ELEMENT_SLOPE_MASK, i); cost += MONEY(abs(cornerHeight) * 5 / 2, 0); }