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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user