diff --git a/src/openrct2/actions/WallPlaceAction.hpp b/src/openrct2/actions/WallPlaceAction.hpp index 424a75f0cf..718a301dfd 100644 --- a/src/openrct2/actions/WallPlaceAction.hpp +++ b/src/openrct2/actions/WallPlaceAction.hpp @@ -117,7 +117,7 @@ public: { if (_loc.z == 0) { - if (!map_is_location_in_park({ _loc.x, _loc.y })) + if (!map_is_location_in_park(_loc)) { return std::make_unique(GA_ERROR::NOT_OWNED); } @@ -613,7 +613,7 @@ private: *wallAcrossTrack = false; gMapGroundFlags = ELEMENT_IS_ABOVE_GROUND; - if (map_is_location_at_edge({ _loc.x, _loc.y })) + if (map_is_location_at_edge(_loc)) { gGameCommandErrorText = STR_OFF_EDGE_OF_MAP; return false; diff --git a/src/openrct2/actions/WallSetColourAction.hpp b/src/openrct2/actions/WallSetColourAction.hpp index 0589114ac1..4091d72287 100644 --- a/src/openrct2/actions/WallSetColourAction.hpp +++ b/src/openrct2/actions/WallSetColourAction.hpp @@ -65,8 +65,7 @@ public: res->ExpenditureType = RCT_EXPENDITURE_TYPE_LANDSCAPING; - if (!(gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) && !map_is_location_in_park({ _loc.x, _loc.y }) - && !gCheatsSandboxMode) + if (!(gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) && !map_is_location_in_park(_loc) && !gCheatsSandboxMode) { return MakeResult(GA_ERROR::NOT_OWNED, STR_CANT_REPAINT_THIS, STR_LAND_NOT_OWNED_BY_PARK); }