aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_check_missing.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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);
}