Fix #10871: Building tall pieces underground results in 'Too high!' (#10907)

This commit is contained in:
Michael Steenbeek 2020-03-09 22:11:47 +01:00 committed by GitHub
parent e1427df59f
commit 3791de21c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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