Fix graphical glitch when rendering narrow viewport slices
This commit is contained in:
@@ -1609,7 +1609,7 @@ static void ViewportAddLandscape()
|
|||||||
_vd.last_foundation_child[0] = nullptr;
|
_vd.last_foundation_child[0] = nullptr;
|
||||||
_vd.last_foundation_child[1] = 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 });
|
_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) {
|
if (tile_info.tile != INVALID_TILE && min_visible_height <= 0) {
|
||||||
DrawTileSelection(&tile_info);
|
DrawTileSelection(&tile_info);
|
||||||
|
Reference in New Issue
Block a user