diff options
Diffstat (limited to 'src/ft_check_missing_sfx.c')
-rw-r--r-- | src/ft_check_missing_sfx.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/ft_check_missing_sfx.c b/src/ft_check_missing_sfx.c index 34d08e2..0d4411a 100644 --- a/src/ft_check_missing_sfx.c +++ b/src/ft_check_missing_sfx.c @@ -14,6 +14,21 @@ #include <cub3d.h> static int + ft_check_missing_enemy_sfx(t_cub *clist) +{ + if (ft_check_not_found(FT_SFX_ENMY_DEATH_PATH) < 0 || + ft_check_ext(FT_SFX_ENMY_DEATH_PATH, ".wav") < 0 || + ft_check_not_found(FT_SFX_ENMY_SCR_ONE_PATH) < 0 || + ft_check_ext(FT_SFX_ENMY_SCR_ONE_PATH, ".wav") < 0 || + ft_check_not_found(FT_SFX_ENMY_SCR_TWO_PATH) < 0 || + ft_check_ext(FT_SFX_ENMY_SCR_TWO_PATH, ".wav") < 0 || + ft_check_not_found(FT_SFX_ENMY_FIRE_PATH) < 0 || + ft_check_ext(FT_SFX_ENMY_FIRE_PATH, ".wav") < 0) + return (ft_missing_error(FT_ERR_MISS_SFX_ENMY, clist)); + return (0); +} + +static int ft_check_missing_weapon_sfx(t_cub *clist) { if (ft_check_not_found(FT_SFX_W_ONE_LOAD_PATH) < 0 || @@ -37,7 +52,7 @@ static int if (ft_check_not_found(FT_SFX_OOA_PATH) < 0 || ft_check_ext(FT_SFX_OOA_PATH, ".wav") < 0) return (ft_missing_error(FT_ERR_MISS_SFX_OOA, clist)); - return (0); + return (ft_check_missing_enemy_sfx(clist)); } int |