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.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c
index 3e4dc96..99ebd65 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,7 +71,7 @@ static int8_t
i = -1;
while (++i < 5)
cl->key_input[i] = -1;
- cl->mpid = 0;
+ cl->mtid = 0;
cl->ishud = 0;
cl->isoldmus = 0;
cl->doicast = 1;
@@ -85,22 +84,18 @@ 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);
}
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++;
- }
+ ft_sprintf(clist->fps_count, "fps: 60");
return (0);
}