aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_check_missing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_check_missing.c')
-rw-r--r--src/ft_check_missing.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_check_missing.c b/src/ft_check_missing.c
index 4d7713d..9f3698b 100644
--- a/src/ft_check_missing.c
+++ b/src/ft_check_missing.c
@@ -41,5 +41,7 @@ int
return (ft_missing_error("floor color", clist));
else if (clist->c_color < 0)
return (ft_missing_error("ceiling color", clist));
+ else if (clist->plist->pos_x == 0 || clist->plist->pos_y == 0)
+ return (ft_missing_error("player spawn", clist));
return (0);
}