aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_check_missing_defines.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_check_missing_defines.c')
-rw-r--r--src/ft_check_missing_defines.c22
1 files changed, 16 insertions, 6 deletions
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));
}