mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-02 03:35:09 +01:00
Replace C-style isSloped() function
This commit is contained in:
committed by
Michael Steenbeek
parent
c41f862920
commit
37f59e17dc
@@ -59,7 +59,7 @@ TEST_F(TileElementWantsFootpathConnection, SlopedPath)
|
||||
// Sloped paths only want to connect in two directions, of which is one at a higher offset
|
||||
const rct_tile_element* const slopedPathElement = map_get_footpath_element(18, 18, 14);
|
||||
ASSERT_NE(slopedPathElement, nullptr);
|
||||
ASSERT_TRUE(footpath_element_is_sloped(slopedPathElement));
|
||||
ASSERT_TRUE(slopedPathElement->AsPath()->IsSloped());
|
||||
// Bottom and top of sloped path want a path connection
|
||||
EXPECT_TRUE(tile_element_wants_path_connection_towards({ 18, 18, 14, 2 }, nullptr));
|
||||
EXPECT_TRUE(tile_element_wants_path_connection_towards({ 18, 18, 16, 0 }, nullptr));
|
||||
|
||||
Reference in New Issue
Block a user