diff options
author | Rudy Bousset <rbousset@z3r8p1.le-101.fr> | 2020-02-13 19:42:05 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z3r8p1.le-101.fr> | 2020-02-13 19:42:05 +0100 |
commit | e29dd2fa3688e1e96a25af3b651da574af08aa90 (patch) | |
tree | cb6486fc91f1b93e61e4dcda25d359095e6aa108 /src/ft_check_map_line.c | |
parent | Better code structure (diff) | |
download | 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.gz 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.bz2 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.xz 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.zst 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.zip |
Splited structs
Diffstat (limited to 'src/ft_check_map_line.c')
-rw-r--r-- | src/ft_check_map_line.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ft_check_map_line.c b/src/ft_check_map_line.c index 1368b63..a53c9c8 100644 --- a/src/ft_check_map_line.c +++ b/src/ft_check_map_line.c @@ -46,8 +46,8 @@ int8_t if (!ft_ischarset("012NSEW ", line[i])) return (-1); if (ft_ischarset("NSEW", line[i])) - clist->isspawn += 1; - if (clist->isspawn > 1) + clist->mlist->isspawn += 1; + if (clist->mlist->isspawn > 1) return (-1); } else @@ -58,7 +58,7 @@ int8_t i++; } if (line[0] != '1' || line[i - 1] != '1' - || ft_get_line_len(line) != clist->map_w) + || ft_get_line_len(line) != clist->mlist->map_w) return (-1); return (0); } |