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
This commit is contained in:
duncanspumpkin 2016-09-25 11:06:19 +01:00
parent c919a71e9e
commit 7c42322f0c
1 changed files with 2 additions and 1 deletions

View File

@ -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;