1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-03 18:07:53 +01:00

Refactor map_is_location_owned to use CoordsXYZ

This commit is contained in:
duncanspumpkin
2019-08-11 07:56:00 +01:00
parent 7d2a7deb28
commit 9619fd384d
23 changed files with 30 additions and 34 deletions

View File

@@ -2117,7 +2117,7 @@ static money32 place_maze_design(uint8_t flags, Ride* ride, uint16_t mazeEntry,
if (!gCheatsSandboxMode)
{
if (!map_is_location_owned(floor2(x, 32), floor2(y, 32), z))
if (!map_is_location_owned({ x, y, z }))
{
return MONEY32_UNDEFINED;
}