From 4984514d2bab3b04790cba631dc7ef8bd8399eff Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Wed, 19 Feb 2020 20:22:27 +0100 Subject: asdasdasd :^) --- src/ft_draw_verline.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ft_draw_verline.c') diff --git a/src/ft_draw_verline.c b/src/ft_draw_verline.c index 6cbdc00..d144d87 100644 --- a/src/ft_draw_verline.c +++ b/src/ft_draw_verline.c @@ -53,9 +53,11 @@ int8_t d = (d <= 0) ? (-d) : (d); tex_y = ((d * cl->tlist[cl->w_side].img_h) / cl->rlist.line_h) / 256; (tex_y < 0) ? (tex_y = 0) : 0; + /*if (!(tex_x % 2))*/ ft_draw_texture(cl, x, y, tex_y); y++; } + /*printf("%d\n", cl->tlist[cl->w_side].tex_x);*/ ft_draw_floor(cl, y, x); return (0); } -- cgit v1.2.3