diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-03-12 18:56:59 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-03-12 18:56:59 +0100 |
commit | 141fb4d33f73cac99b1b19e475f83fb755f208a2 (patch) | |
tree | e93c2d490440caee29f2c85d86c9dc9bd8512a28 /src/ft_init_map.c | |
parent | kk (diff) | |
download | 42-cub3d-141fb4d33f73cac99b1b19e475f83fb755f208a2.tar.gz 42-cub3d-141fb4d33f73cac99b1b19e475f83fb755f208a2.tar.bz2 42-cub3d-141fb4d33f73cac99b1b19e475f83fb755f208a2.tar.xz 42-cub3d-141fb4d33f73cac99b1b19e475f83fb755f208a2.tar.zst 42-cub3d-141fb4d33f73cac99b1b19e475f83fb755f208a2.zip |
good
Diffstat (limited to 'src/ft_init_map.c')
-rw-r--r-- | src/ft_init_map.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ft_init_map.c b/src/ft_init_map.c index 1462ef3..8f6bb3d 100644 --- a/src/ft_init_map.c +++ b/src/ft_init_map.c @@ -83,6 +83,8 @@ int8_t mlist->scale = 0; mlist->nlx = 0; mlist->nly = 0; - ft_calloc_sprites(mlist); - return (0); + mlist->sprite_var = 0; + ft_bzero(mlist->sprite_order, 4096); + ft_bzero(mlist->traps_order, 512); + return (ft_calloc_sprites(mlist)); } |