mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
Next chunk of World/Map.h snakes (#18296)
* Next chunk of World/Map.h snakes * Apply clang-format
This commit is contained in:
@@ -103,8 +103,7 @@ TEST_F(TileElementWantsFootpathConnection, Stall)
|
||||
TEST_F(TileElementWantsFootpathConnection, RideEntrance)
|
||||
{
|
||||
// Ride entrances and exits want a connection in one direction
|
||||
const EntranceElement* const entranceElement = map_get_ride_entrance_element_at(
|
||||
TileCoordsXYZ{ 18, 8, 14 }.ToCoordsXYZ(), false);
|
||||
const EntranceElement* const entranceElement = MapGetRideEntranceElementAt(TileCoordsXYZ{ 18, 8, 14 }.ToCoordsXYZ(), false);
|
||||
ASSERT_NE(entranceElement, nullptr);
|
||||
EXPECT_TRUE(TileElementWantsPathConnectionTowards({ 18, 8, 14, 0 }, nullptr));
|
||||
EXPECT_FALSE(TileElementWantsPathConnectionTowards({ 18, 8, 14, 1 }, nullptr));
|
||||
@@ -116,7 +115,7 @@ TEST_F(TileElementWantsFootpathConnection, RideEntrance)
|
||||
TEST_F(TileElementWantsFootpathConnection, RideExit)
|
||||
{
|
||||
// The exit has been rotated; it wants a path connection in direction 1, but not 0 like the entrance
|
||||
const EntranceElement* const exitElement = map_get_ride_exit_element_at(TileCoordsXYZ{ 18, 10, 14 }.ToCoordsXYZ(), false);
|
||||
const EntranceElement* const exitElement = MapGetRideExitElementAt(TileCoordsXYZ{ 18, 10, 14 }.ToCoordsXYZ(), false);
|
||||
ASSERT_NE(exitElement, nullptr);
|
||||
EXPECT_FALSE(TileElementWantsPathConnectionTowards({ 18, 10, 14, 0 }, nullptr));
|
||||
EXPECT_TRUE(TileElementWantsPathConnectionTowards({ 18, 10, 14, 1 }, nullptr));
|
||||
|
||||
Reference in New Issue
Block a user