mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 17:42:29 +01:00
Fix water sides glitch (#10599)
This commit is contained in:
committed by
GitHub
parent
804cf2c072
commit
733ec6ec24
@@ -587,7 +587,7 @@ static void viewport_surface_draw_tile_side_bottom(
|
||||
|
||||
if (isWater && neighbour.tile_element != nullptr)
|
||||
{
|
||||
auto waterHeight = neighbour.tile_element->AsSurface()->GetWaterHeight() / COORDS_Z_STEP;
|
||||
auto waterHeight = neighbour.tile_element->AsSurface()->GetWaterHeight() / (COORDS_Z_STEP * 2);
|
||||
if (waterHeight == height && !neighbourIsClippedAway)
|
||||
{
|
||||
// Don't draw the edge when the neighbour's water level is the same
|
||||
|
||||
Reference in New Issue
Block a user