Fix water sides glitch (#10599)

This commit is contained in:
Michael Steenbeek 2020-01-21 14:34:25 +01:00 committed by GitHub
parent 804cf2c072
commit 733ec6ec24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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