mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #3561: Tunnels drawn incorrectly
This commit is contained in:
parent
dd377bcfc1
commit
f2033b0d93
|
@ -609,6 +609,8 @@ static void viewport_surface_draw_land_side_bottom(enum edge edge, uint8 height,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
regs.ah = regs.cl;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
if (curHeight >= regs.al || curHeight >= regs.cl) {
|
if (curHeight >= regs.al || curHeight >= regs.cl) {
|
||||||
// If top of edge isn't straight, add a filler
|
// 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) {
|
while (true) {
|
||||||
if (curHeight >= regs.al || curHeight >= regs.cl) {
|
if (curHeight >= regs.al || curHeight >= regs.cl) {
|
||||||
// If top of edge isn't straight, add a filler
|
// If top of edge isn't straight, add a filler
|
||||||
|
|
Loading…
Reference in New Issue