aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-01-29 18:32:31 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-01-29 18:32:31 +0100
commitd7be99a2cd8d35862bba45322691004e146b673c (patch)
treea221a8dc548edc2a72f770b20b1d074d3d848319 /src
parentdur dur (diff)
download42-cub3d-d7be99a2cd8d35862bba45322691004e146b673c.tar.gz
42-cub3d-d7be99a2cd8d35862bba45322691004e146b673c.tar.bz2
42-cub3d-d7be99a2cd8d35862bba45322691004e146b673c.tar.xz
42-cub3d-d7be99a2cd8d35862bba45322691004e146b673c.tar.zst
42-cub3d-d7be99a2cd8d35862bba45322691004e146b673c.zip
Changed names
Diffstat (limited to '')
-rw-r--r--src/ft_get_map_redo.c4
-rw-r--r--src/ft_parse_map.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/src/ft_get_map_redo.c b/src/ft_get_map_redo.c
index 004dd3d..869f432 100644
--- a/src/ft_get_map_redo.c
+++ b/src/ft_get_map_redo.c
@@ -33,7 +33,7 @@ ft_check_line(char *line, uint8_t l, t_cub *clist)
}
int
-ft_get_first_line(char *line, t_cub *clist)
+ft_get_map_first_line(char *line, t_cub *clist)
{
if (!line[0])
{
@@ -49,7 +49,7 @@ ft_get_first_line(char *line, t_cub *clist)
}
int
-ft_get_map(int fd, t_cub *clist)
+ft_get_map_core(int fd, t_cub *clist)
{
int ret;
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) */