From 36917bd75a75a112bd5492b8dc48a745a3cb5135 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Sun, 4 Oct 2015 20:52:27 +0100 Subject: [PATCH] Fix #1661. Track direction now remembered when deleteing last section --- src/windows/ride_construction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/ride_construction.c b/src/windows/ride_construction.c index 87926da849..85e09df891 100644 --- a/src/windows/ride_construction.c +++ b/src/windows/ride_construction.c @@ -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;