1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix #1661. Track direction now remembered when deleteing last section

This commit is contained in:
duncanspumpkin
2015-10-04 20:52:27 +01:00
parent 9017e5ff86
commit 36917bd75a

View File

@@ -1771,7 +1771,7 @@ static void window_ride_construction_mouseup_demolish(rct_window* w)
sub_6C84CE();
if (!sub_6CAF80(_currentRideIndex, &outputElement)) {
sub_6CC3FB(_currentRideIndex);
_currentTrackPieceDirection = _currentTrackPieceDirection;
_currentTrackPieceDirection = direction;
if (!(slope & 0x100)) {
_currentTrackCurve = slope;
_previousTrackSlopeEnd = slopeEnd;