diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-04 00:17:54 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-04 00:17:54 +0100 |
commit | 46ed1046b3d8e9dfbb9438552582898c3c79a9f5 (patch) | |
tree | fd1d0c451944d55945375cceeda800ac6664cf27 /src/ft_check_map_line.c | |
parent | Map update (diff) | |
download | 42-cub3d-46ed1046b3d8e9dfbb9438552582898c3c79a9f5.tar.gz 42-cub3d-46ed1046b3d8e9dfbb9438552582898c3c79a9f5.tar.bz2 42-cub3d-46ed1046b3d8e9dfbb9438552582898c3c79a9f5.tar.xz 42-cub3d-46ed1046b3d8e9dfbb9438552582898c3c79a9f5.tar.zst 42-cub3d-46ed1046b3d8e9dfbb9438552582898c3c79a9f5.zip |
Chelou maps work, now sides check
Diffstat (limited to 'src/ft_check_map_line.c')
-rw-r--r-- | src/ft_check_map_line.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ft_check_map_line.c b/src/ft_check_map_line.c index c5b4cdc..2d69545 100644 --- a/src/ft_check_map_line.c +++ b/src/ft_check_map_line.c @@ -71,7 +71,7 @@ size_t static int8_t ft_check_side_walls(char *line, size_t i, t_cub *clist) { - if (line[0] != '1' || line[i - 1] != '1') + if ((line [0] != ' ' && line[0] != '1') || line[i - 1] != '1') { ft_sprintf(clist->errmsg, FT_ERR_MAP_WALLS); return (-1); @@ -100,10 +100,10 @@ int8_t } if (ft_check_side_walls(line, i, clist) < 0) return (-1); - if (ft_get_line_len(line) != clist->mlist.map_w) - { - ft_sprintf(clist->errmsg, FT_ERR_MAP_LEN); - return (-1); - } + /* if (ft_get_line_len(line) != clist->mlist.map_w) */ + /* { */ + /* ft_sprintf(clist->errmsg, FT_ERR_MAP_LEN); */ + /* return (-1); */ + /* } */ return (0); } |