aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_lists.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-29 15:42:37 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-29 15:42:37 +0200
commit76cefdc4dc3efa6eb410574a0f5ec42188ba11bd (patch)
tree755a05ecf1380be7e4011277e7aa657e9a76f6e6 /src/ft_init_lists.c
parentAwesome (diff)
download42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.tar.gz
42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.tar.bz2
42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.tar.xz
42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.tar.zst
42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.zip
Almost
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r--src/ft_init_lists.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c
index 25b8eb6..2105a64 100644
--- a/src/ft_init_lists.c
+++ b/src/ft_init_lists.c
@@ -115,6 +115,11 @@ int8_t
return (-1);
if (ft_init_sprites(&clist->sprites) < 0)
return (-1);
+ 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;