diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-15 20:29:21 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-15 20:29:21 +0100 |
commit | 030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa (patch) | |
tree | aa661716c5ffdd844e41bccb9be833637eaaa3b8 /src/ft_parse_map.c | |
parent | In progress (diff) | |
download | 42-cub3d-030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa.tar.gz 42-cub3d-030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa.tar.bz2 42-cub3d-030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa.tar.xz 42-cub3d-030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa.tar.zst 42-cub3d-030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa.zip |
Work in progress, res now
Diffstat (limited to '')
-rw-r--r-- | src/ft_parse_map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c index 0eef871..c4aa011 100644 --- a/src/ft_parse_map.c +++ b/src/ft_parse_map.c @@ -90,12 +90,12 @@ void if (fd < 0) ft_no_map_error(clist); ret = 1; - while (ret != 12 && ret != -1) + while (ret != 12 && ret >= 0) ret = ft_parse_it(fd, clist); (ret == -2) ? (ft_map_error(FT_ERR_ALR_SET, clist)) : 0; (ret == -1) ? (ft_map_error(clist->errmsg, clist)) : 0; if (ft_get_map_core(fd, clist) < 0) - ft_map_error(clist); + ft_map_error(clist->errmsg, clist); ft_check_map_last_line(clist); ft_get_player_spawn(clist->plist, clist); ft_check_missing(clist); |