mirror of https://github.com/OpenRCT2/OpenRCT2.git
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:
parent
c919a71e9e
commit
7c42322f0c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue