diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-28 18:55:45 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-28 18:55:45 +0100 |
commit | cbb47afbbcc9b42f3094df620bbc0ef02aa7f3d2 (patch) | |
tree | 1e0aa232748e071c10779ed7dbf641178d85664e /src/ft_parse_map.c | |
parent | In progress (diff) | |
download | 42-cub3d-cbb47afbbcc9b42f3094df620bbc0ef02aa7f3d2.tar.gz 42-cub3d-cbb47afbbcc9b42f3094df620bbc0ef02aa7f3d2.tar.bz2 42-cub3d-cbb47afbbcc9b42f3094df620bbc0ef02aa7f3d2.tar.xz 42-cub3d-cbb47afbbcc9b42f3094df620bbc0ef02aa7f3d2.tar.zst 42-cub3d-cbb47afbbcc9b42f3094df620bbc0ef02aa7f3d2.zip |
Parsed
Diffstat (limited to 'src/ft_parse_map.c')
-rw-r--r-- | src/ft_parse_map.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c index 0dfb779..2b5265d 100644 --- a/src/ft_parse_map.c +++ b/src/ft_parse_map.c @@ -61,7 +61,7 @@ static int8_t ft_memdel((void**)&line); return (ft_parse_it(fd, clist)); } - if (!ft_ischarset("RNSEWFC1\0", line[0]) + if (!ft_ischarset("RNSEWFCL1\0", line[0]) || !(words = ft_split(line, ' '))) return (ft_error_here(FT_ERR_ILL_ENTRY, line, clist)); if ((ret = ft_select_get(words, clist)) == 12) @@ -98,6 +98,7 @@ void ft_map_error(clist->errmsg, clist); ft_check_map_last_line(clist); ft_get_player_spawn(clist->plist, clist); + ft_get_nlvl_pos(clist->mlist); ft_check_missing(clist); ft_set_minimap_scale(clist); close(fd); |