1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 07:14:31 +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

@@ -1233,7 +1233,7 @@ static int32_t track_design_place_maze(TrackDesign* td6, int16_t x, int16_t y, i
gMapSelectionTiles.clear();
gMapSelectArrowPosition.x = x;
gMapSelectArrowPosition.y = y;
gMapSelectArrowPosition.z = tile_element_height(x, y);
gMapSelectArrowPosition.z = tile_element_height({ x, y });
gMapSelectArrowDirection = _currentTrackPieceDirection;
}
@@ -1449,7 +1449,7 @@ static bool track_design_place_ride(TrackDesign* td6, int16_t x, int16_t y, int1
gMapSelectionTiles.clear();
gMapSelectArrowPosition.x = x;
gMapSelectArrowPosition.y = y;
gMapSelectArrowPosition.z = tile_element_height(x, y);
gMapSelectArrowPosition.z = tile_element_height({ x, y });
gMapSelectArrowDirection = _currentTrackPieceDirection;
}