1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00

Move getting seat rotation to struct methods

This commit is contained in:
Gymnasiast
2018-09-17 22:15:19 +02:00
parent ae4c464ce7
commit 6bd732ce5a
7 changed files with 15 additions and 14 deletions

View File

@@ -1052,7 +1052,7 @@ static bool track_design_save_to_td6_for_tracked_ride(uint8_t rideIndex, rct_tra
}
else
{
bh = track_element_get_seat_rotation(trackElement.element);
bh = trackElement.element->AsTrack()->GetSeatRotation();
}
uint8_t flags = (trackElement.element->type & (1 << 7)) | bh;