diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2020-02-20 04:23:50 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2020-02-20 04:23:50 +0100 |
commit | 2082e311ed02aac56a0eeb0b8b610b3ab2dc2518 (patch) | |
tree | 274bbdbdf5ab9dc51f3c9e882d5e5bbc39f6b87f /src/ft_draw_verline.c | |
parent | :^)))))))))))))))))))))))))))) (diff) | |
download | 42-cub3d-2082e311ed02aac56a0eeb0b8b610b3ab2dc2518.tar.gz 42-cub3d-2082e311ed02aac56a0eeb0b8b610b3ab2dc2518.tar.bz2 42-cub3d-2082e311ed02aac56a0eeb0b8b610b3ab2dc2518.tar.xz 42-cub3d-2082e311ed02aac56a0eeb0b8b610b3ab2dc2518.tar.zst 42-cub3d-2082e311ed02aac56a0eeb0b8b610b3ab2dc2518.zip |
asd works cool
Diffstat (limited to 'src/ft_draw_verline.c')
-rw-r--r-- | src/ft_draw_verline.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/ft_draw_verline.c b/src/ft_draw_verline.c index d144d87..d526b6a 100644 --- a/src/ft_draw_verline.c +++ b/src/ft_draw_verline.c @@ -11,7 +11,6 @@ /* ************************************************************************** */ #include <cub3d.h> -#include <stdio.h> static void ft_draw_floor(t_cub *cl, int32_t y, int32_t x) @@ -53,11 +52,9 @@ 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); } |