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.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/ft_check_missing_defines.c b/src/ft_check_missing_defines.c
index d5d56b9..e32d7f7 100644
--- a/src/ft_check_missing_defines.c
+++ b/src/ft_check_missing_defines.c
@@ -42,6 +42,18 @@ static int
return (ft_check_missing_sfx(clist));
}
+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));
+ return (ft_check_missing_number_defines(clist));
+}
+
int
ft_check_missing_tex_defines(t_cub *clist)
{
@@ -69,5 +81,5 @@ int
if (ft_check_not_found(FT_WEAPON_THREE_FIRE_PATH) < 0 ||
ft_check_ext(FT_WEAPON_THREE_FIRE_PATH, ".xpm") < 0)
return (ft_missing_error(FT_ERR_MISS_W_THREE_FIRE, clist));
- return (ft_check_missing_number_defines(clist));
+ return (ft_check_missing_more_tex_defines(clist));
}