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

This commit is contained in:
mix authored and GitHub committed 2025-05-03 14:57:33 +02:00
1 parent ca4535fa24
commit c9a80f7c2b
2 files changed
+2 -1

No files matched your search

+1
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).
@@ -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)