aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_check_map_surrounds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_check_map_surrounds.c')
-rw-r--r--src/ft_check_map_surrounds.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/ft_check_map_surrounds.c b/src/ft_check_map_surrounds.c
index fbe2ff8..4b3f236 100644
--- a/src/ft_check_map_surrounds.c
+++ b/src/ft_check_map_surrounds.c
@@ -22,18 +22,10 @@ static int8_t
map[y - 1][x] == ' ' ||
map[y][x + 1] == ' ' ||
map[y][x - 1] == ' ' ||
- map[y + 1][x + 1] == ' ' ||
- map[y - 1][x + 1] == ' ' ||
- map[y + 1][x - 1] == ' ' ||
- map[y - 1][x - 1] == ' ' ||
map[y + 1][x] == '\0' ||
map[y - 1][x] == '\0' ||
map[y][x + 1] == '\0' ||
- map[y][x - 1] == '\0' ||
- map[y + 1][x + 1] == '\0' ||
- map[y - 1][x + 1] == '\0' ||
- map[y + 1][x - 1] == '\0' ||
- map[y - 1][x - 1] == '\0')
+ map[y][x - 1] == '\0')
return (-1);
return (0);
}