1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-19 05:52:27 +01:00

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

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;