aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_check_missing_defines.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-23 15:16:07 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-23 15:16:07 +0100
commita46856a951455d5bf9078355f2310e1cf1bbf230 (patch)
treea2d6e781c9da6c8d916693403b057c1f6b967f16 /src/ft_check_missing_defines.c
parentGood start (diff)
download42-cub3d-a46856a951455d5bf9078355f2310e1cf1bbf230.tar.gz
42-cub3d-a46856a951455d5bf9078355f2310e1cf1bbf230.tar.bz2
42-cub3d-a46856a951455d5bf9078355f2310e1cf1bbf230.tar.xz
42-cub3d-a46856a951455d5bf9078355f2310e1cf1bbf230.tar.zst
42-cub3d-a46856a951455d5bf9078355f2310e1cf1bbf230.zip
It's going well
Diffstat (limited to 'src/ft_check_missing_defines.c')
-rw-r--r--src/ft_check_missing_defines.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ft_check_missing_defines.c b/src/ft_check_missing_defines.c
index e32d7f7..bf5bd6d 100644
--- a/src/ft_check_missing_defines.c
+++ b/src/ft_check_missing_defines.c
@@ -14,6 +14,14 @@
#include <cub3d.h>
static int
+ ft_check_missing_other_number_defines(t_cub *clist)
+{
+ 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));
+ return (ft_check_missing_sfx(clist));
+}
+static int
ft_check_missing_number_defines(t_cub *clist)
{
if (ft_check_not_found(FT_ZER_PATH) < 0 ||
@@ -39,7 +47,7 @@ static int
ft_check_not_found(FT_PER_PATH) < 0 ||
ft_check_ext(FT_PER_PATH, ".xpm") < 0)
return (ft_missing_error(FT_ERR_MISS_NUMBER, clist));
- return (ft_check_missing_sfx(clist));
+ return (ft_check_missing_other_number_defines(clist));
}
static int