1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 17:24:47 +01:00

Move direct access to maze entry to struct methods

This commit is contained in:
Michael Steenbeek
2018-09-18 14:04:23 +02:00
committed by Gymnasiast
parent 75b5c45a97
commit 3f17782692
10 changed files with 44 additions and 30 deletions

View File

@@ -892,7 +892,7 @@ static bool track_design_save_to_td6_for_maze(uint8_t rideIndex, rct_track_td6*
if (tileElement->AsTrack()->GetRideIndex() != rideIndex)
continue;
maze->maze_entry = track_element_get_maze_entry(tileElement);
maze->maze_entry = tileElement->AsTrack()->GetMazeEntry();
maze->x = (x - startX) / 32;
maze->y = (y - startY) / 32;
maze++;