From 3a346b70624949dcf7f4bec385c840441c6e3e31 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 5 Mar 2020 15:59:52 +0100 Subject: Get normed --- src/ft_check_map_line.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/ft_check_map_line.c') diff --git a/src/ft_check_map_line.c b/src/ft_check_map_line.c index 2d69545..7b9b545 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] != ' ' && 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,5 @@ 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); */ - /* } */ return (0); } -- cgit v1.2.3