mirror of https://github.com/OpenRCT2/OpenRCT2.git
Revert place park entrance change
Incorrectly changed. ParkEntrances can go nearer to the edge.
This commit is contained in:
parent
ae6657dcdc
commit
6116b490eb
|
@ -50,7 +50,8 @@ GameActions::Result::Ptr PlaceParkEntranceAction::Query() const
|
||||||
res->Expenditure = ExpenditureType::LandPurchase;
|
res->Expenditure = ExpenditureType::LandPurchase;
|
||||||
res->Position = { _loc.x, _loc.y, _loc.z };
|
res->Position = { _loc.x, _loc.y, _loc.z };
|
||||||
|
|
||||||
if (!LocationValid(_loc) || map_is_edge(_loc))
|
if (!LocationValid(_loc) || _loc.x <= 32 || _loc.y <= 32 || _loc.x >= (gMapSizeUnits - 32)
|
||||||
|
|| _loc.y >= (gMapSizeUnits - 32))
|
||||||
{
|
{
|
||||||
return std::make_unique<GameActions::Result>(
|
return std::make_unique<GameActions::Result>(
|
||||||
GameActions::Status::InvalidParameters, STR_CANT_BUILD_THIS_HERE, STR_TOO_CLOSE_TO_EDGE_OF_MAP);
|
GameActions::Status::InvalidParameters, STR_CANT_BUILD_THIS_HERE, STR_TOO_CLOSE_TO_EDGE_OF_MAP);
|
||||||
|
|
Loading…
Reference in New Issue