aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_check_missing_defines.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-22 23:42:05 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-22 23:42:05 +0100
commit1e84a8792302f0446e8eb838f478b4a6564d1011 (patch)
tree1968ab8d402596dc710afa4cf70335687e64637b /src/ft_check_missing_defines.c
parentCleaner (diff)
download42-cub3d-1e84a8792302f0446e8eb838f478b4a6564d1011.tar.gz
42-cub3d-1e84a8792302f0446e8eb838f478b4a6564d1011.tar.bz2
42-cub3d-1e84a8792302f0446e8eb838f478b4a6564d1011.tar.xz
42-cub3d-1e84a8792302f0446e8eb838f478b4a6564d1011.tar.zst
42-cub3d-1e84a8792302f0446e8eb838f478b4a6564d1011.zip
I think we good
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));
}