mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix water sides glitch (#10599)
This commit is contained in:
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
|
||||
|
|
Loading…
Reference in New Issue