Valid map fix
This commit is contained in:
@@ -6,10 +6,10 @@ EA assets/textures/backRoom3.png
|
||||
C 164,157,79
|
||||
F 30,55,55
|
||||
|
||||
111111111111111111111111111
|
||||
11111111111111111111111111
|
||||
100000000011100000000000001
|
||||
101100000111110000000000001
|
||||
100100000001000000N00000111
|
||||
10110000011 110000000000001
|
||||
100100000001000000N0000011
|
||||
111111111011000001110000000000001
|
||||
100000000011000001110111110111111
|
||||
11110111111111011100000010001
|
||||
|
||||
@@ -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