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;