From 686ff038172689989c1bedfe56689d9401843f4b Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 27 Apr 2020 17:34:47 +0100 Subject: [PATCH] Fix graphical glitch when rendering narrow viewport slices --- src/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewport.cpp b/src/viewport.cpp index 34c9b3ab05..63cde4ba32 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1609,7 +1609,7 @@ static void ViewportAddLandscape() _vd.last_foundation_child[0] = nullptr; _vd.last_foundation_child[1] = nullptr; - bool no_ground_tiles = (column == left_column || column == right_column) || min_visible_height > 0; + bool no_ground_tiles = min_visible_height > 0; _tile_type_procs[tile_type]->draw_tile_proc(&tile_info, { min_visible_height, no_ground_tiles }); if (tile_info.tile != INVALID_TILE && min_visible_height <= 0) { DrawTileSelection(&tile_info);