1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 01:04:50 +01:00

Refactor tile_element_height to use CoordsXY

This commit is contained in:
duncanspumpkin
2019-08-13 18:21:50 +01:00
parent 5ba9d55415
commit c6452095ca
53 changed files with 86 additions and 91 deletions

View File

@@ -105,7 +105,7 @@ static std::vector<paint_session> extract_paint_session(const std::string parkFi
int32_t customY = (gMapSize / 2) * 32 + 16;
int32_t x = 0, y = 0;
int32_t z = tile_element_height(customX, customY);
int32_t z = tile_element_height({ customX, customY });
x = customY - customX;
y = ((customX + customY) / 2) - z;