Fix #3561: Tunnels drawn incorrectly

This commit is contained in:
Marijn van der Werf 2016-10-19 22:45:19 +02:00 committed by Ted John
parent dd377bcfc1
commit f2033b0d93
1 changed files with 4 additions and 0 deletions

View File

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