1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Receive CoordsXY by const ref instead of copy

This commit is contained in:
Tulio Leao
2020-02-29 01:09:06 -03:00
parent b9186f4b0b
commit 475eed0a56
21 changed files with 137 additions and 124 deletions

View File

@@ -289,7 +289,7 @@ static CoordsXY GetEdgeTile(int32_t mapSize, int32_t rotation, EdgeType edgeType
}
}
static int32_t GetHighestBaseClearanceZ(CoordsXY location)
static int32_t GetHighestBaseClearanceZ(const CoordsXY& location)
{
int32_t z = 0;
auto element = map_get_first_element_at(location);