Valid map fix
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/12/05 16:30:33 by aortigos #+# #+# */
|
||||
/* Updated: 2025/12/09 19:49:06 by aortigos ### ########.fr */
|
||||
/* Updated: 2025/12/10 12:25:34 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -23,7 +23,7 @@ int h_map(char **map)
|
||||
j = 0;
|
||||
while (map[i][j])
|
||||
{
|
||||
if (map[i][j] != '1' || map [i][j] != ' ')
|
||||
if (map[i][j] != '1' && map [i][j] != ' ')
|
||||
if (map[i][j - 1] == ' ' || map[i][j + 1] == ' ')
|
||||
return (ft_putstr_fd(ERR_MAP_INV, 2), 0);
|
||||
j++;
|
||||
|
||||
Reference in New Issue
Block a user