diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-01-29 19:49:46 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-01-29 19:49:46 +0100 |
commit | e57898b31dd38667ca2335243b97a247ffc872f4 (patch) | |
tree | 8b4049363965cdab0a112aefceaaf36f210bb6d4 | |
parent | good good (diff) | |
download | 42-cub3d-e57898b31dd38667ca2335243b97a247ffc872f4.tar.gz 42-cub3d-e57898b31dd38667ca2335243b97a247ffc872f4.tar.bz2 42-cub3d-e57898b31dd38667ca2335243b97a247ffc872f4.tar.xz 42-cub3d-e57898b31dd38667ca2335243b97a247ffc872f4.tar.zst 42-cub3d-e57898b31dd38667ca2335243b97a247ffc872f4.zip |
One last check
-rw-r--r-- | map/map_one.cub | 2 | ||||
-rw-r--r-- | src/ft_get_map_redo.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/map/map_one.cub b/map/map_one.cub index 4ca0318..837c115 100644 --- a/map/map_one.cub +++ b/map/map_one.cub @@ -22,4 +22,4 @@ C 225,30,0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 0 1 1 1 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 1 1 1 0 1 1 1 1 0 N 0 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 0 1 1 1 1 1 0 1 1 1 1 0 0 0 1 -1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 +1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
\ No newline at end of file diff --git a/src/ft_get_map_redo.c b/src/ft_get_map_redo.c index a195227..a621282 100644 --- a/src/ft_get_map_redo.c +++ b/src/ft_get_map_redo.c @@ -82,6 +82,8 @@ ft_get_map_core(int fd, t_cub *clist) i++; } clist->mapl[((clist->map_w + 1) * i) - 1] = '\0'; - ft_printf("mapl >>>> [%s]\n", clist->mapl); + ft_free_words(clist->map); + clist->map = ft_split(clist->mapl, '\n'); + ft_memdel(clist->mapl); return (0); } |