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

Use sint32 instead of int

This commit is contained in:
jensj12
2017-07-29 23:13:13 +02:00
parent 353c66e19a
commit b0f93a08d9

View File

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