diff options
Diffstat (limited to 'src/ft_parse_map.c')
-rw-r--r-- | src/ft_parse_map.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c index 49d41ba..dfa1ba6 100644 --- a/src/ft_parse_map.c +++ b/src/ft_parse_map.c @@ -78,6 +78,7 @@ void ft_parse_map(const char *map_path, t_cub *clist) { int fd; + uint8_t ret; ft_check_cub(map_path, clist); fd = open(map_path, O_RDONLY); @@ -87,7 +88,10 @@ ft_parse_map(const char *map_path, t_cub *clist) ft_dprintf(STDERR_FILENO, "\033[31;1mNo map\033[0m\n"); ft_exit(2, clist); } - ft_parse_it(fd, clist); + ret = 1; + while (ret != 12) + ret = ft_parse_it(fd, clist); + ft_get_map(void); /* if (ft_get_tex(fd, clist) < 0) */ /* return ; */ /* ft_check_empty_line(fd, 6, clist); */ |