aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_check_missing_defines.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-30 15:36:16 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-30 15:36:16 +0200
commit5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894 (patch)
tree9f706d2c691ac8e23f0b8d804baca3d80fb9e9bf /src/ft_check_missing_defines.c
parentNorm (diff)
download42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.tar.gz
42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.tar.bz2
42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.tar.xz
42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.tar.zst
42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.zip
Check missing enemy good
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));
}