From 84b6ca845a07421b10b527f3c18a49eabd8fb2f9 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Mon, 17 Feb 2020 18:52:58 +0100 Subject: have correct width and hit zone, supposedly not much left --- src/ft_tex_init.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/ft_tex_init.c') diff --git a/src/ft_tex_init.c b/src/ft_tex_init.c index 166f431..724877f 100644 --- a/src/ft_tex_init.c +++ b/src/ft_tex_init.c @@ -23,15 +23,6 @@ ** 4 : sprite */ -void ft_puttex(t_cub *cl) -{ - int i; - - i = 0; - while (i < cl->tlist[0].img_w) - i += 4; -} - void ft_wall_tex_init(t_cub *cl) { cl->tlist[0].img = mlx_xpm_file_to_image(cl->wlist->wlx, @@ -54,5 +45,4 @@ void ft_wall_tex_init(t_cub *cl) cl->mlist->sprite_path, &cl->tlist[4].img_w, &cl->tlist[4].img_h); cl->tlist[4].ptr = mlx_get_data_addr(cl->tlist[4].img, &cl->tlist[4].bpp, &cl->tlist[4].sizeline, &cl->tlist[4].endian); - ft_puttex(cl); } -- cgit v1.2.3