diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-01-29 19:52:32 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-01-29 19:52:32 +0100 |
commit | a8f215adbc079c97589dd3412426f29224f73bd3 (patch) | |
tree | 48ab4726fd888ce13d313f96b81452e7a22c77fd /src/ft_check_map_line.c | |
parent | One last check (diff) | |
download | 42-cub3d-a8f215adbc079c97589dd3412426f29224f73bd3.tar.gz 42-cub3d-a8f215adbc079c97589dd3412426f29224f73bd3.tar.bz2 42-cub3d-a8f215adbc079c97589dd3412426f29224f73bd3.tar.xz 42-cub3d-a8f215adbc079c97589dd3412426f29224f73bd3.tar.zst 42-cub3d-a8f215adbc079c97589dd3412426f29224f73bd3.zip |
Perfect
Diffstat (limited to 'src/ft_check_map_line.c')
-rw-r--r-- | src/ft_check_map_line.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_check_map_line.c b/src/ft_check_map_line.c index 1c8c6c6..0d164cd 100644 --- a/src/ft_check_map_line.c +++ b/src/ft_check_map_line.c @@ -43,7 +43,8 @@ ft_check_map_line(char *line, uint8_t l, t_cub *clist) } i++; } - if (line[0] != '1' || line[i - 1] != '1') + if (line[0] != '1' || line[i - 1] != '1' + || ft_get_line_len(line) != clist->map_w) return (-1); return (0); } |