forked from rosebudai/OpenRCT2-Web
Part of #13874: Replace TrackCoordinates
This commit is contained in:
1 parent
5c261b6d2e
commit
80418efafb
8 files changed
+41
-22
No files matched your search
@@ -594,7 +594,9 @@ static void window_track_place_draw_mini_preview_track(
|
||||
|
||||
// Change rotation and next position based on track curvature
|
||||
curTrackRotation &= 3;
|
||||
const rct_track_coordinates* track_coordinate = &TrackCoordinates[trackType];
|
||||
using namespace OpenRCT2::TrackMetaData;
|
||||
const auto& teDescriptor = GetTrackElementDescriptor(trackType);
|
||||
const rct_track_coordinates* track_coordinate = &teDescriptor.Coordinates;
|
||||
|
||||
curTrackStart += CoordsXY{ track_coordinate->x, track_coordinate->y }.Rotate(curTrackRotation);
|
||||
curTrackRotation += track_coordinate->rotation_end - track_coordinate->rotation_begin;
|
||||
|
||||
Reference in new issue
Block a user