From f2033b0d93912a0294cbaa30dbcab90e85f217e4 Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Wed, 19 Oct 2016 22:45:19 +0200 Subject: [PATCH] Fix #3561: Tunnels drawn incorrectly --- src/paint/map_element/surface.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/paint/map_element/surface.c b/src/paint/map_element/surface.c index e45e672984..4db53e69b9 100644 --- a/src/paint/map_element/surface.c +++ b/src/paint/map_element/surface.c @@ -609,6 +609,8 @@ static void viewport_surface_draw_land_side_bottom(enum edge edge, uint8 height, } } + regs.ah = regs.cl; + while (true) { if (curHeight >= regs.al || curHeight >= regs.cl) { // If top of edge isn't straight, add a filler @@ -879,6 +881,8 @@ static void viewport_surface_draw_water_side_bottom(enum edge edge, uint8 height } } + regs.ah = regs.cl; + while (true) { if (curHeight >= regs.al || curHeight >= regs.cl) { // If top of edge isn't straight, add a filler