From 36f43285ad7ef3e0f53708914832b0f7dbfcae21 Mon Sep 17 00:00:00 2001 From: Henry Cheng <39224097+jazzysoggy@users.noreply.github.com> Date: Tue, 28 Jun 2022 20:15:15 -0400 Subject: [PATCH] Close #16688: Remove unused variables on RideConstruction (#17453) Co-authored-by: Tulio Leao --- src/openrct2-ui/windows/RideConstruction.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openrct2-ui/windows/RideConstruction.cpp b/src/openrct2-ui/windows/RideConstruction.cpp index 7e1c5acb09..e37b0bb694 100644 --- a/src/openrct2-ui/windows/RideConstruction.cpp +++ b/src/openrct2-ui/windows/RideConstruction.cpp @@ -3422,16 +3422,16 @@ void ride_construction_toolupdate_entrance_exit(const ScreenCoordsXY& screenCoor void ride_construction_tooldown_construct(const ScreenCoordsXY& screenCoords) { const CursorState* state = context_get_cursor_state(); - RideId rideIndex; - int32_t trackType, trackDirection, liftHillAndAlternativeState, z, properties, highestZ; + rct_window* w; map_invalidate_map_selection_tiles(); ride_construction_invalidate_current_track(); CoordsXYZ mapCoords{}; - if (window_ride_construction_update_state( - &trackType, &trackDirection, &rideIndex, &liftHillAndAlternativeState, &mapCoords, &properties)) + int32_t trackType, z, highestZ; + + if (window_ride_construction_update_state(&trackType, nullptr, nullptr, nullptr, nullptr, nullptr)) return; z = mapCoords.z;