diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 18:09:55 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 18:09:55 +0100 |
commit | 273459283c98b5f10814fdf74c74c2e6a13f10c0 (patch) | |
tree | 6959619028e32cb5452e7ca6b65cccf5a7ca0072 /src/ft_init_sfx.c | |
parent | New sfx, clean exit (diff) | |
download | 42-cub3d-273459283c98b5f10814fdf74c74c2e6a13f10c0.tar.gz 42-cub3d-273459283c98b5f10814fdf74c74c2e6a13f10c0.tar.bz2 42-cub3d-273459283c98b5f10814fdf74c74c2e6a13f10c0.tar.xz 42-cub3d-273459283c98b5f10814fdf74c74c2e6a13f10c0.tar.zst 42-cub3d-273459283c98b5f10814fdf74c74c2e6a13f10c0.zip |
Not ideal
Diffstat (limited to '')
-rw-r--r-- | src/ft_init_sfx.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ft_init_sfx.c b/src/ft_init_sfx.c index 2aed165..84032d7 100644 --- a/src/ft_init_sfx.c +++ b/src/ft_init_sfx.c @@ -16,6 +16,7 @@ #include <stddef.h> #include <stdlib.h> #include <stdint.h> +#include <unistd.h> static int8_t ft_split_sfx(char ***target, const char *path) @@ -41,9 +42,12 @@ int8_t ft_init_sfx(t_sfx *sfx) { if (ft_split_sfx(&sfx->death, FT_SFX_DEATH_PATH) < 0 || - ft_split_sfx(&sfx->trap, FT_SFX_TRAP_PATH) < 0 || + ft_split_sfx(&sfx->footstep_one, FT_SFX_FS_ONE_PATH) < 0 || + ft_split_sfx(&sfx->footstep_two, FT_SFX_FS_TWO_PATH) < 0 || + ft_split_sfx(&sfx->new_lvl, FT_SFX_N_LVL_PATH) < 0 || ft_split_sfx(&sfx->pain_one, FT_SFX_SCR_ONE_PATH) < 0 || - ft_split_sfx(&sfx->pain_two, FT_SFX_SCR_TWO_PATH) < 0) + ft_split_sfx(&sfx->pain_two, FT_SFX_SCR_TWO_PATH) < 0 || + ft_split_sfx(&sfx->trap, FT_SFX_TRAP_PATH) < 0) return (-1); return (0); } |