From ae1994db7551563450fe5c5189877f75db48c8aa Mon Sep 17 00:00:00 2001 From: frozensnowy Date: Sun, 1 Mar 2026 12:56:32 +0100 Subject: [PATCH] Fix #10616: Quarter tile trees cannot be placed on dry portions of half water tiles The water placement check treated any tile with water as "on water" regardless of whether the specific quadrant's land was above or below the water level. This prevented placing quarter tile scenery on the dry parts of half water tiles , even though RCT1 allowed this. Now the check only considers scenery "on water" when the land height at that quadrant is actually below the water level. --- distribution/changelog.txt | 1 + .../actions/scenery/SmallSceneryPlaceAction.cpp | 15 ++++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index ca25333283..c1a0530e3c 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,5 +1,6 @@ 0.4.33 (in development) ------------------------------------------------------------------------ +- Fix: [#10616] Quarter-tile trees cannot be placed on dry portions of half-water tiles. - Fix: [#26111] Vehicle colours tab can go out of bounds in certain edge cases. 0.4.32 (2026-03-01) diff --git a/src/openrct2/actions/scenery/SmallSceneryPlaceAction.cpp b/src/openrct2/actions/scenery/SmallSceneryPlaceAction.cpp index 720c6d3e80..fda50d527d 100644 --- a/src/openrct2/actions/scenery/SmallSceneryPlaceAction.cpp +++ b/src/openrct2/actions/scenery/SmallSceneryPlaceAction.cpp @@ -154,10 +154,10 @@ namespace OpenRCT2::GameActions waterHeight = TileElementWaterHeight(loc2); surfaceHeight = landHeight; - // If on water - if (waterHeight > 0) + // If on water (land at this quadrant is below water level) + if (waterHeight > 0 && landHeight < waterHeight) { - // BaseHeight2 is now the water height + // surfaceHeight is now the water height surfaceHeight = waterHeight; if (_loc.z == 0) { @@ -204,7 +204,8 @@ namespace OpenRCT2::GameActions } if (!gameState.cheats.disableClearanceChecks && (sceneryEntry->HasFlag(SMALL_SCENERY_FLAG_REQUIRE_FLAT_SURFACE)) - && !supportsRequired && !isOnWater && surfaceElement != nullptr && (surfaceElement->GetSlope() != kTileSlopeFlat)) + && !supportsRequired && surfaceElement != nullptr && surfaceElement->GetWaterHeight() == 0 + && (surfaceElement->GetSlope() != kTileSlopeFlat)) { return Result(Status::disallowed, STR_CANT_POSITION_THIS_HERE, STR_LEVEL_LAND_REQUIRED); } @@ -346,10 +347,10 @@ namespace OpenRCT2::GameActions waterHeight = TileElementWaterHeight({ x2, y2 }); surfaceHeight = landHeight; - // If on water - if (waterHeight > 0) + // If on water (land at this quadrant is below water level) + if (waterHeight > 0 && landHeight < waterHeight) { - // BaseHeight2 is now the water height + // surfaceHeight is now the water height surfaceHeight = waterHeight; } auto targetHeight = _loc.z;