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.
This commit is contained in:
frozensnowy authored and GitHub committed 2026-03-01 11:56:32 +00:00
1 parent 52069bd60f
commit ae1994db75
2 files changed
+9 -7

No files matched your search

+1
View File
@@ -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)
@@ -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;