From 629a24052f77529cc306cbd355f57a48ba3ff49d Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 27 Jul 2024 13:53:35 +1000 Subject: Fix ren_line --- render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render.c b/render.c index c8b673b..d36d528 100644 --- a/render.c +++ b/render.c @@ -433,7 +433,7 @@ void ren_line( ) { Line l; init_line(&l, s, e); - while (l.x != e[0] && l.y != e[1]) { + while (l.x != e[0] || l.y != e[1]) { Colour* dst = &r->t[l.x + l.y * r->vp[0]]; if (l.x < r->clip[0] || l.y < r->clip[1]) goto step; if (l.x >= r->clip[2] || l.y >= r->clip[3]) goto step; -- cgit v1.2.3-54-g00ecf