1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 09:44:52 +01:00

Close #16688: Remove unused variables on RideConstruction (#17453)

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
This commit is contained in:
Henry Cheng
2022-06-28 20:15:15 -04:00
committed by GitHub
parent e39fd9226f
commit 36f43285ad

View File

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