From 7c42322f0c59b618e97cac6754fc8bbf0eaada24 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Sun, 25 Sep 2016 11:06:19 +0100 Subject: [PATCH] Fix likely cause of #4377. Track design entrance locations. During a refactor the entrance locations were incorrectly computed and this would cause issues. This would only happen when tracks were rotated so would not occur in some situations --- src/ride/track_design_save.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ride/track_design_save.c b/src/ride/track_design_save.c index 303be5aef7..f0e6a08d92 100644 --- a/src/ride/track_design_save.c +++ b/src/ride/track_design_save.c @@ -1125,7 +1125,8 @@ static bool track_design_save_to_td6_for_tracked_ride(uint8 rideIndex, rct_track x -= gTrackPreviewOrigin.x; y -= gTrackPreviewOrigin.y; - rotate_map_coordinates(&x, &y, _trackSaveDirection); + // Rotate entrance coordinates backwards to the correct direction + rotate_map_coordinates(&x, &y, _trackSaveDirection ^ 2); entrance->x = x; entrance->y = y;