Fix graphical glitch when rendering narrow viewport slices

This commit is contained in:
Jonathan G Rennison
2020-04-27 17:34:47 +01:00
parent 669b68d140
commit 686ff03817

View File

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