mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 17:42:29 +01:00
Remove entrance/exit location functions
This commit is contained in:
@@ -198,7 +198,7 @@ TEST_P(SimplePathfindingTest, CanFindPathFromStartToGoal)
|
||||
auto ride = FindRideByName(scenario.name);
|
||||
ASSERT_NE(ride, nullptr);
|
||||
|
||||
auto entrancePos = ride_get_entrance_location(ride, StationIndex::FromUnderlying(0));
|
||||
auto entrancePos = ride->GetStation().Entrance;
|
||||
TileCoordsXYZ goal = TileCoordsXYZ(
|
||||
entrancePos.x - TileDirectionDelta[entrancePos.direction].x,
|
||||
entrancePos.y - TileDirectionDelta[entrancePos.direction].y, entrancePos.z);
|
||||
@@ -236,7 +236,7 @@ TEST_P(ImpossiblePathfindingTest, CannotFindPathFromStartToGoal)
|
||||
auto ride = FindRideByName(scenario.name);
|
||||
ASSERT_NE(ride, nullptr);
|
||||
|
||||
auto entrancePos = ride_get_entrance_location(ride, StationIndex::FromUnderlying(0));
|
||||
auto entrancePos = ride->GetStation().Entrance;
|
||||
TileCoordsXYZ goal = TileCoordsXYZ(
|
||||
entrancePos.x + TileDirectionDelta[entrancePos.direction].x,
|
||||
entrancePos.y + TileDirectionDelta[entrancePos.direction].y, entrancePos.z);
|
||||
|
||||
Reference in New Issue
Block a user