diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-30 16:20:10 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-30 16:20:10 +0200 |
commit | f3ef7f448c8551df9c723d22d33a6fac0b966c22 (patch) | |
tree | 982d3e931f77d30a2cc7c2d28ea6129c5f7467ca /src/ft_init_sprites.c | |
parent | Less fat sprites (diff) | |
download | 42-cub3d-f3ef7f448c8551df9c723d22d33a6fac0b966c22.tar.gz 42-cub3d-f3ef7f448c8551df9c723d22d33a6fac0b966c22.tar.bz2 42-cub3d-f3ef7f448c8551df9c723d22d33a6fac0b966c22.tar.xz 42-cub3d-f3ef7f448c8551df9c723d22d33a6fac0b966c22.tar.zst 42-cub3d-f3ef7f448c8551df9c723d22d33a6fac0b966c22.zip |
Fixed conditionnal jump btw
Diffstat (limited to 'src/ft_init_sprites.c')
-rw-r--r-- | src/ft_init_sprites.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ft_init_sprites.c b/src/ft_init_sprites.c index ee9506f..020f169 100644 --- a/src/ft_init_sprites.c +++ b/src/ft_init_sprites.c @@ -32,6 +32,10 @@ ** 10: weapon one - tlist[18] - 4 ** 11: weapon two - tlist[19] - 4 ** 12: weapon three - tlist[20] - 4 +** 13: enemy - tlist[23] | +** '- - - - - - - tlist[24] | +** '- - - - - - - tlist[25] | +** '- - - - - - - tlist[26] - 32 */ int8_t @@ -57,5 +61,7 @@ int8_t if (!(*((*sprites) + i) = (t_sprite*)ft_calloc(4, sizeof(t_sprite)))) return (-1); } + if (!(*((*sprites) + 13) = (t_sprite*)ft_calloc(32, sizeof(t_sprite)))) + return (-1); return (0); } |