1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 17:42:29 +01:00

Refactor map_get_footpath_element() and fix #10486

This commit is contained in:
Gymnasiast
2019-12-31 10:08:36 +01:00
parent 37110f386d
commit 0d09a645fc
10 changed files with 22 additions and 21 deletions

View File

@@ -117,7 +117,7 @@ protected:
// Check that the peep is still on a footpath. Use next_z instead of pos->z here because pos->z will change
// when the peep is halfway up a slope, but next_z will not change until they move to the next tile.
EXPECT_NE(map_get_footpath_element(pos->x, pos->y, peep->next_z), nullptr);
EXPECT_NE(map_get_footpath_element(TileCoordsXYZ{ pos->x, pos->y, peep->next_z }.ToCoordsXYZ()), nullptr);
}
// Clean up the peep, because we're reusing this loaded context for all tests.