diff options
author | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2020-02-02 19:07:38 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2020-02-02 19:07:38 +0100 |
commit | 8c3b79c41048539d01f689d2fd3262b9b08ed00b (patch) | |
tree | 8caf2d580961f59d35dd7df70a7825c79f1a6706 /src/ft_check_missing.c | |
parent | Added player list (diff) | |
download | 42-cub3d-8c3b79c41048539d01f689d2fd3262b9b08ed00b.tar.gz 42-cub3d-8c3b79c41048539d01f689d2fd3262b9b08ed00b.tar.bz2 42-cub3d-8c3b79c41048539d01f689d2fd3262b9b08ed00b.tar.xz 42-cub3d-8c3b79c41048539d01f689d2fd3262b9b08ed00b.tar.zst 42-cub3d-8c3b79c41048539d01f689d2fd3262b9b08ed00b.zip |
Parsed player spawn
Diffstat (limited to 'src/ft_check_missing.c')
-rw-r--r-- | src/ft_check_missing.c | 2 |
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); } |