diff --git a/src/map/checkers.c b/src/map/checkers.c index 45b9a86..58b856a 100644 --- a/src/map/checkers.c +++ b/src/map/checkers.c @@ -6,7 +6,7 @@ /* By: kcolin +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/07/17 14:15:26 by kcolin #+# #+# */ -/* Updated: 2025/10/03 23:25:16 by tchampio ### ########.fr */ +/* Updated: 2025/10/03 23:51:46 by tchampio ### ########.fr */ /* */ /* ************************************************************************** */ @@ -48,8 +48,8 @@ bool check_walls(t_mapdata *map) j = 0; while (map->map[i][j] == ' ') j++; - if (map->map[i][j] != '1' - && map->map[i][ft_strlen(map->map[i]) - 1] != '1') + if (ft_strchr("12", map->map[i][j]) + && ft_strchr("12", map->map[i][ft_strlen(map->map[i]) - 1])) return (false); if (i == 0 || i == map->mapheight - 1) {