From 3b8486ed4a51feee27f514eaa5af185cd8b62954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Thu, 21 Oct 2021 20:48:36 +0300 Subject: [PATCH] Refactor explicit constructor usage in WallPlaceAction --- src/openrct2/actions/WallPlaceAction.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openrct2/actions/WallPlaceAction.cpp b/src/openrct2/actions/WallPlaceAction.cpp index 5b528b2934..4b8c049010 100644 --- a/src/openrct2/actions/WallPlaceAction.cpp +++ b/src/openrct2/actions/WallPlaceAction.cpp @@ -490,7 +490,7 @@ GameActions::Result::Ptr WallPlaceAction::WallCheckObstruction( *wallAcrossTrack = false; if (map_is_location_at_edge(_loc)) { - return MakeResult(GameActions::Status::InvalidParameters, STR_OFF_EDGE_OF_MAP); + return MakeResult(GameActions::Status::InvalidParameters, STR_CANT_BUILD_THIS_HERE, STR_OFF_EDGE_OF_MAP); } TileElement* tileElement = map_get_first_element_at(_loc); @@ -512,7 +512,7 @@ GameActions::Result::Ptr WallPlaceAction::WallCheckObstruction( int32_t direction = tileElement->GetDirection(); if (_edge == direction) { - auto res = MakeResult(GameActions::Status::NoClearance, STR_NONE); + auto res = MakeResult(GameActions::Status::NoClearance, STR_CANT_BUILD_THIS_HERE, STR_NONE); map_obstruction_set_error_text(tileElement, *res); return res; } @@ -520,7 +520,7 @@ GameActions::Result::Ptr WallPlaceAction::WallCheckObstruction( } if (tileElement->GetOccupiedQuadrants() == 0) continue; - auto res = MakeResult(GameActions::Status::NoClearance, STR_NONE); + auto res = MakeResult(GameActions::Status::NoClearance, STR_CANT_BUILD_THIS_HERE, STR_NONE); switch (elementType) { case TILE_ELEMENT_TYPE_ENTRANCE: