aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_parse_map.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_parse_map.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c
index af11e2f..f51d531 100644
--- a/src/ft_parse_map.c
+++ b/src/ft_parse_map.c
@@ -73,10 +73,9 @@ ft_parse_it(int fd, t_cub *clist)
ft_memdel(line);
return (ft_map_error(clist));
}
- ft_printf("%s\n", line);
if ((ret = ft_select_get(words, clist)) == 12)
{
- if (ft_get_first_line(line, clist) < 0)
+ if (ft_get_map_first_line(line, clist) < 0)
return (-1);
return (12);
}
@@ -104,7 +103,7 @@ ft_parse_map(const char *map_path, t_cub *clist)
if (ret == -1)
ft_map_error(clist);
clist->nsew = 0;
- if (ft_get_map(fd, clist) < 0)
+ if (ft_get_map_core(fd, clist) < 0)
ft_map_error(clist);
ft_check_missing(clist);
/* if (ft_get_tex(fd, clist) < 0) */