diff options
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); } |