mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 03:53:07 +01:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user