From a67bc79504a399ad0194d104aa250725bf6280b1 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 16 Mar 2020 16:46:55 +0100 Subject: Debug in progress --- src/ft_init_lists.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/ft_init_lists.c') diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c index 3e4dc96..fa862ae 100644 --- a/src/ft_init_lists.c +++ b/src/ft_init_lists.c @@ -11,7 +11,6 @@ /* ************************************************************************** */ #include -#include #include #include #include @@ -85,22 +84,17 @@ static int8_t cl->walltexgood = 0; ft_init_funptr(cl); ft_init_ref(cl); + if (!(cl->sprites = ft_init_sprites())) + return (-1); return (0); } int8_t ft_init_cub3d(t_cub *clist) { - uint8_t i; if (ft_init_cub(clist) < 0) return (-1); if (ft_init_win(&clist->wlist) < 0) return (-1); - i = 0; - while (i < 9) - { - ft_bzero(clist->sprites[i], 4096); - i++; - } return (0); } -- cgit v1.2.3