diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-24 19:01:23 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-24 19:01:23 +0100 |
commit | 002635e73c2ce724a132311f17bab6d6eea11157 (patch) | |
tree | de86ec792b3b0e4411c32ad19be091e2e183640a /src/ft_draw_verline.c | |
parent | SALAD (diff) | |
download | 42-cub3d-002635e73c2ce724a132311f17bab6d6eea11157.tar.gz 42-cub3d-002635e73c2ce724a132311f17bab6d6eea11157.tar.bz2 42-cub3d-002635e73c2ce724a132311f17bab6d6eea11157.tar.xz 42-cub3d-002635e73c2ce724a132311f17bab6d6eea11157.tar.zst 42-cub3d-002635e73c2ce724a132311f17bab6d6eea11157.zip |
Bug fix, 1px bug is back
Diffstat (limited to 'src/ft_draw_verline.c')
-rw-r--r-- | src/ft_draw_verline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_draw_verline.c b/src/ft_draw_verline.c index 7edac71..e1bcb16 100644 --- a/src/ft_draw_verline.c +++ b/src/ft_draw_verline.c @@ -78,7 +78,7 @@ int8_t ft_draw_ceil(cl, y, x); (cl->rlist.line_h <= 0) ? (cl->rlist.line_h = 1) : 0; /* ft_draw_ceil_tex(cl, y, x); */ - while (y <= y2) + while (y < y2) { d = y * 256 - cl->wlist->y_size * 128 + cl->rlist.line_h * 128; d = (d <= 0) ? (-d) : (d); |