diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_get_map.c | 3 | ||||
-rw-r--r-- | src/main.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/ft_get_map.c b/src/ft_get_map.c index b64da72..a0ddfbb 100644 --- a/src/ft_get_map.c +++ b/src/ft_get_map.c @@ -82,10 +82,9 @@ int i = 1; ret = 1; - while (ret > 0) + while ((ret = get_next_line(fd, &line)) > 0) { clist->line_chk += 1; - ret = get_next_line(fd, &line); if (!line[0] || ft_check_map_line(line, 0, clist) < 0 || ft_cat_mapl(line, i, clist) < 0) { @@ -31,7 +31,7 @@ int ft_memdel((void**)&clist); return (1); } - ft_parse_map("map/map_one.cub", clist); + ft_parse_map("map/map_vim.cub", clist); if (ft_init_winlx(clist) < 0) return (ft_exit(3, clist)); mlx_key_hook(clist->wlist->winptr, ft_key_event, clist); |