From 8c3b79c41048539d01f689d2fd3262b9b08ed00b Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sun, 2 Feb 2020 19:07:38 +0100 Subject: Parsed player spawn --- src/ft_check_missing.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ft_check_missing.c') 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); } -- cgit v1.2.3