From 4acb7ff5e191b70c47673b02be7fd8d3cb51a359 Mon Sep 17 00:00:00 2001 From: IntelOrca Date: Mon, 6 Jul 2015 22:53:16 +0100 Subject: [PATCH] fix demolish of flat rides and unable to build it again --- 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 292c96bfe0..84daa1f183 100644 --- a/src/windows/ride_construction.c +++ b/src/windows/ride_construction.c @@ -1767,7 +1767,7 @@ static void window_ride_construction_mouseup_demolish(rct_window* w) if (!sub_6CAF80(_currentRideIndex, &outputElement)) { sub_6CC3FB(_currentRideIndex); _currentTrackPieceDirection = _currentTrackPieceDirection; - if (slope & 0x100) { + if (!(slope & 0x100)) { _currentTrackCurve = slope; _previousTrackSlopeEnd = slopeEnd; _currentTrackSlopeEnd = b2;