From 2ea18fb7e893691389108ae7731e26576715ca13 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 31 Mar 2020 16:19:22 +0200 Subject: Alright sounds --- src/ft_check_missing_sfx.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/ft_check_missing_sfx.c') 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 @@ -13,6 +13,21 @@ #include #include +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) { @@ -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 -- cgit v1.2.3