aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_lists.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r--src/ft_init_lists.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c
index 5726a5b..692f3ce 100644
--- a/src/ft_init_lists.c
+++ b/src/ft_init_lists.c
@@ -11,7 +11,6 @@
/* ************************************************************************** */
#include <libft.h>
-#include <mlx.h>
#include <cub3d.h>
#include <stddef.h>
#include <stdlib.h>
@@ -72,6 +71,7 @@ static int8_t
i = -1;
while (++i < 5)
cl->key_input[i] = -1;
+ cl->mtid = 0;
cl->ishud = 0;
cl->isoldmus = 0;
cl->doicast = 1;
@@ -84,6 +84,8 @@ static int8_t
cl->walltexgood = 0;
ft_init_funptr(cl);
ft_init_ref(cl);
+ if (ft_init_sprites(&cl->sprites) < 0)
+ return (-1);
return (0);
}