From 5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 30 Mar 2020 15:36:16 +0200 Subject: Check missing enemy good --- src/ft_check_missing_defines.c | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'src/ft_check_missing_defines.c') diff --git a/src/ft_check_missing_defines.c b/src/ft_check_missing_defines.c index bf5bd6d..a25c5ee 100644 --- a/src/ft_check_missing_defines.c +++ b/src/ft_check_missing_defines.c @@ -19,8 +19,15 @@ static int if (ft_check_not_found(FT_INF_PATH) < 0 || ft_check_ext(FT_INF_PATH, ".xpm") < 0) return (ft_missing_error(FT_ERR_MISS_NUMBER, clist)); + if (ft_check_not_found(FT_CAP_HEALTH_PATH) < 0 || + ft_check_ext(FT_CAP_HEALTH_PATH, ".xpm") < 0) + return (ft_missing_error(FT_ERR_MISS_H_CAPTION, clist)); + if (ft_check_not_found(FT_CAP_AMMO_PATH) < 0 || + ft_check_ext(FT_CAP_AMMO_PATH, ".xpm") < 0) + return (ft_missing_error(FT_ERR_MISS_A_CAPTION, clist)); return (ft_check_missing_sfx(clist)); } + static int ft_check_missing_number_defines(t_cub *clist) { @@ -53,12 +60,15 @@ static int static int ft_check_missing_more_tex_defines(t_cub *clist) { - if (ft_check_not_found(FT_CAP_HEALTH_PATH) < 0 || - ft_check_ext(FT_CAP_HEALTH_PATH, ".xpm") < 0) - return (ft_missing_error(FT_ERR_MISS_H_CAPTION, clist)); - if (ft_check_not_found(FT_CAP_AMMO_PATH) < 0 || - ft_check_ext(FT_CAP_AMMO_PATH, ".xpm") < 0) - return (ft_missing_error(FT_ERR_MISS_A_CAPTION, clist)); + if (ft_check_not_found(FT_ENMY_WAIT_PATH) < 0 || + ft_check_ext(FT_ENMY_WAIT_PATH, ".xpm") < 0 || + ft_check_not_found(FT_ENMY_WALK_PATH) < 0 || + ft_check_ext(FT_ENMY_WALK_PATH, ".xpm") < 0 || + ft_check_not_found(FT_ENMY_FIRE_PATH) < 0 || + ft_check_ext(FT_ENMY_FIRE_PATH, ".xpm") < 0 || + ft_check_not_found(FT_ENMY_DEAD_PATH) < 0 || + ft_check_ext(FT_ENMY_DEAD_PATH, ".xpm") < 0) + return (ft_missing_error(FT_ERR_MISS_ENMY, clist)) return (ft_check_missing_number_defines(clist)); } -- cgit v1.2.3