Skip to content

Commit

Permalink
Merge pull request #21925 from Gymnasiast/fix/10701
Browse files Browse the repository at this point in the history
Fix two error messages when placing wall
  • Loading branch information
Gymnasiast committed Apr 28, 2024
2 parents c02c792 + de0ca4d commit 5470a49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions distribution/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Change: [#21715] [Plugin] Remove access to the internal `owner` property. Note: `ownership` is still accessible.
- Change: [#21855] Cheats menu dropdown no longer requires dragging.
- Fix: [#866] Boat Hire boats get stuck entering track.
- Fix: [#10701] No reason specified when placing door over unsuitable track.
- Fix: [#19559] Custom rides with long descriptions extend into lower widgets.
- Fix: [#21696] Fullscreen window option not correctly applied on macOS.
- Fix: [#21787] Map generator heightmap should respect increased height limits.
Expand Down
3 changes: 2 additions & 1 deletion src/openrct2/actions/WallPlaceAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ GameActions::Result WallPlaceAction::Query() const
else if (!_trackDesignDrawingPreview && (_loc.x > mapSizeMax.x || _loc.y > mapSizeMax.y))
{
LOG_ERROR("Invalid x/y coordinates. x = %d y = %d", _loc.x, _loc.y);
return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_BUILD_THIS_HERE, STR_NONE);
return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_BUILD_THIS_HERE, STR_OFF_EDGE_OF_MAP);
}

if (_edge > 3)
Expand Down Expand Up @@ -585,6 +585,7 @@ GameActions::Result WallPlaceAction::WallCheckObstruction(
case TileElementType::Track:
if (!WallCheckObstructionWithTrack(wall, z0, tileElement->AsTrack(), wallAcrossTrack))
{
MapGetObstructionErrorText(tileElement, res);
return res;
}
break;
Expand Down

0 comments on commit 5470a49

Please sign in to comment.