1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fix #18479: Tile elements ordered beneath water do not draw correctly (#24306)

This commit is contained in:
mix
2025-05-03 13:57:33 +01:00
committed by GitHub
parent ca4535fa24
commit c9a80f7c2b
2 changed files with 2 additions and 1 deletions

View File

@@ -15,6 +15,7 @@
- Change: [#24236] Controls and Interface options now both have their own tabs in the Options window.
- Change: [#24308] “Software” and “Software (hardware display)” renderers have been merged into a single “Software” renderer.
- Change: [#24317] The scenery window now shows at least one row of scenery objects, even if there are multiple rows of tabs.
- Fix: [#18479] Tile elements ordered beneath water do not draw correctly.
- Fix: [#19782] Game stops counting inversions and golf holes after 31 (original bug).
- Fix: [#21207] Track List window gets positioned incorrectly.
- Fix: [#21919] Non-recolourable cars still show colour picker (original bug).

View File

@@ -195,7 +195,7 @@ static void PaintTileElementBase(PaintSession& session, const CoordsXY& origCoor
if (element->GetType() == TileElementType::Surface && (element->AsSurface()->GetWaterHeight() > 0))
{
max_height = element->AsSurface()->GetWaterHeight();
max_height = std::max(max_height, static_cast<uint16_t>(element->AsSurface()->GetWaterHeight()));
}
if (partOfVirtualFloor)