From d953f25b968396d8fd28bf2e7ab1c89354de60e9 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Sun, 25 Sep 2016 12:17:27 +0100 Subject: [PATCH] Fix #4377. Entrances correctly saved for tracked rides --- src/ride/track_design_save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ride/track_design_save.c b/src/ride/track_design_save.c index f0e6a08d92..0109d84590 100644 --- a/src/ride/track_design_save.c +++ b/src/ride/track_design_save.c @@ -1126,7 +1126,7 @@ static bool track_design_save_to_td6_for_tracked_ride(uint8 rideIndex, rct_track y -= gTrackPreviewOrigin.y; // Rotate entrance coordinates backwards to the correct direction - rotate_map_coordinates(&x, &y, _trackSaveDirection ^ 2); + rotate_map_coordinates(&x, &y, (0 - _trackSaveDirection) & 3); entrance->x = x; entrance->y = y;