From 3791de21c8beb524a905fe44f3ed70aa57b7556c Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Mon, 9 Mar 2020 22:11:47 +0100 Subject: [PATCH] Fix #10871: Building tall pieces underground results in 'Too high!' (#10907) --- src/openrct2/windows/_legacy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/windows/_legacy.cpp b/src/openrct2/windows/_legacy.cpp index fedbf073c7..42b0ea290d 100644 --- a/src/openrct2/windows/_legacy.cpp +++ b/src/openrct2/windows/_legacy.cpp @@ -250,7 +250,7 @@ bool window_ride_construction_update_state( { ride_id_t rideIndex; uint8_t trackType, trackDirection; - uint16_t z, x, y, liftHillAndInvertedState, properties; + uint16_t x, y, liftHillAndInvertedState, properties; auto updated_element = window_ride_construction_update_state_get_track_element(); if (!std::get<0>(updated_element)) @@ -323,7 +323,7 @@ bool window_ride_construction_update_state( x = _currentTrackBegin.x; y = _currentTrackBegin.y; - z = _currentTrackBegin.z; + auto z = _currentTrackBegin.z; if (_rideConstructionState == RIDE_CONSTRUCTION_STATE_BACK) { z -= trackCoordinates->z_end;