1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00

Remove entrance/exit location functions

This commit is contained in:
Hielke Morsink
2022-01-28 15:57:28 +01:00
committed by ζeh Matt
parent 2137cea3bb
commit ad0a2a8f96
18 changed files with 141 additions and 187 deletions

View File

@@ -374,7 +374,7 @@ rct_string_id TrackDesign::CreateTrackDesignMaze(TrackDesignState& tds, const Ri
x = 0;
}
auto location = ride_get_entrance_location(&ride, StationIndex::FromUnderlying(0));
auto location = ride.GetStation().Entrance;
if (location.IsNull())
{
return STR_TRACK_TOO_LARGE_OR_TOO_MUCH_SCENERY;
@@ -403,7 +403,7 @@ rct_string_id TrackDesign::CreateTrackDesignMaze(TrackDesignState& tds, const Ri
mazeEntrance.y = static_cast<int8_t>((entranceLoc.y - startLoc.y) / 32);
maze_elements.push_back(mazeEntrance);
location = ride_get_exit_location(&ride, StationIndex::FromUnderlying(0));
location = ride.GetStation().Exit;
if (location.IsNull())
{
return STR_TRACK_TOO_LARGE_OR_TOO_MUCH_SCENERY;