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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c
index 942b9a4..2105a64 100644
--- a/src/ft_init_lists.c
+++ b/src/ft_init_lists.c
@@ -115,8 +115,11 @@ int8_t
return (-1);
if (ft_init_sprites(&clist->sprites) < 0)
return (-1);
- if (ft_init_weaps(&clist->weaps) < 0)
+ if (!(clist->big_t = (float**)ft_calloc(2, sizeof(float*))) ||
+ !(clist->big_t[0] = (float*)ft_calloc(1, sizeof(float))) ||
+ !(clist->big_t[1] = (float*)ft_calloc(1, sizeof(float))))
return (-1);
+ clist->big_t_val = 2;
ft_sprintf(clist->fps_count, "fps: 60");
clist->isdead = 0;
clist->moves = 0;