aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_check_missing.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-02-29 00:29:17 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-02-29 00:29:17 +0100
commit4fccd597e3c5c97144e4324c1371db9f7f039967 (patch)
tree25cb40e9a022ca66fa038864b771e6b0fb15fc05 /src/ft_check_missing.c
parentAll works but one thing is not ok (diff)
download42-cub3d-4fccd597e3c5c97144e4324c1371db9f7f039967.tar.gz
42-cub3d-4fccd597e3c5c97144e4324c1371db9f7f039967.tar.bz2
42-cub3d-4fccd597e3c5c97144e4324c1371db9f7f039967.tar.xz
42-cub3d-4fccd597e3c5c97144e4324c1371db9f7f039967.tar.zst
42-cub3d-4fccd597e3c5c97144e4324c1371db9f7f039967.zip
Works fine, preparing small map
Diffstat (limited to 'src/ft_check_missing.c')
-rw-r--r--src/ft_check_missing.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ft_check_missing.c b/src/ft_check_missing.c
index 7353a0e..4828250 100644
--- a/src/ft_check_missing.c
+++ b/src/ft_check_missing.c
@@ -46,5 +46,9 @@ int
return (ft_missing_error(FT_ERR_MISS_CEIL_C, clist));
else if (clist->plist->pos_x == 0 || clist->plist->pos_y == 0)
return (ft_missing_error(FT_ERR_MISS_PLAYER_SPAWN, clist));
+ else if (clist->mlist->isnlvl && !clist->mlist->nl_tex_path[0])
+ return (ft_missing_error(FT_ERR_MISS_NLVL, clist));
+ else if (clist->mlist->isnlvl && !clist->mlist->nlevel_path[0])
+ return (ft_missing_error(FT_ERR_MISS_NLVL_PATH, clist));
return (0);
}