diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 20:18:36 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 20:18:36 +0100 |
commit | daf41fc015b4cd475e6169fb6186fddf46c7a5ac (patch) | |
tree | 870bc7c6d4c6e361158f9d6307f1bdffd940eb64 /src/ft_parse_map.c | |
parent | ok but might redo ft_split (diff) | |
download | 42-cub3d-daf41fc015b4cd475e6169fb6186fddf46c7a5ac.tar.gz 42-cub3d-daf41fc015b4cd475e6169fb6186fddf46c7a5ac.tar.bz2 42-cub3d-daf41fc015b4cd475e6169fb6186fddf46c7a5ac.tar.xz 42-cub3d-daf41fc015b4cd475e6169fb6186fddf46c7a5ac.tar.zst 42-cub3d-daf41fc015b4cd475e6169fb6186fddf46c7a5ac.zip |
Work in progress, split redone
Diffstat (limited to 'src/ft_parse_map.c')
-rw-r--r-- | src/ft_parse_map.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c index d2fbe0d..d3d1f53 100644 --- a/src/ft_parse_map.c +++ b/src/ft_parse_map.c @@ -14,5 +14,10 @@ ft_parse_map(t_win *wlist, t_cub *clist, const char *map_path) (void)clist; fd = open(map_path, O_RDONLY); + if (fd < 0) + { + ft_printf("\033[31;1mNo map\033[0m\n"); + ft_exit(2); + } ft_get_res(fd, wlist); } |