diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-01-29 16:41:06 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-01-29 16:41:06 +0100 |
commit | e51748b78bd082d3f781930ba9eba619f0342bf6 (patch) | |
tree | 81871b5c1b6325bc20a2999e3bbd80f418973688 /src/ft_parse_map.c | |
parent | Got colors (diff) | |
download | 42-cub3d-e51748b78bd082d3f781930ba9eba619f0342bf6.tar.gz 42-cub3d-e51748b78bd082d3f781930ba9eba619f0342bf6.tar.bz2 42-cub3d-e51748b78bd082d3f781930ba9eba619f0342bf6.tar.xz 42-cub3d-e51748b78bd082d3f781930ba9eba619f0342bf6.tar.zst 42-cub3d-e51748b78bd082d3f781930ba9eba619f0342bf6.zip |
Better error management
Diffstat (limited to 'src/ft_parse_map.c')
-rw-r--r-- | src/ft_parse_map.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c index 52c6316..0be76bc 100644 --- a/src/ft_parse_map.c +++ b/src/ft_parse_map.c @@ -91,7 +91,9 @@ ft_parse_map(const char *map_path, t_cub *clist) ret = 1; while (ret != 12) ret = ft_parse_it(fd, clist); - ft_get_map(fd, clist); + ft_check_missing(clist); + if (ft_get_map(fd, clist) < 0) + ft_map_error(clist); /* if (ft_get_tex(fd, clist) < 0) */ /* return ; */ /* ft_check_empty_line(fd, 6, clist); */ |