mirror of https://github.com/OpenRCT2/OpenRCT2.git
Refactor explicit constructor usage in LandLowerAction
This commit is contained in:
parent
a9d9fd5f4f
commit
520053a9ff
|
@ -134,10 +134,8 @@ GameActions::Result::Ptr LandLowerAction::QueryExecute(bool isExecuting) const
|
||||||
|
|
||||||
if (!withinOwnership)
|
if (!withinOwnership)
|
||||||
{
|
{
|
||||||
GameActions::Result::Ptr ownerShipResult = std::make_unique<GameActions::Result>(
|
return std::make_unique<GameActions::Result>(
|
||||||
GameActions::Status::Disallowed, STR_LAND_NOT_OWNED_BY_PARK);
|
GameActions::Status::Disallowed, STR_CANT_LOWER_LAND_HERE, STR_LAND_NOT_OWNED_BY_PARK);
|
||||||
ownerShipResult->ErrorTitle = STR_CANT_LOWER_LAND_HERE;
|
|
||||||
return ownerShipResult;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Force ride construction to recheck area
|
// Force ride construction to recheck area
|
||||||
|
|
Loading…
Reference in New Issue