This commit is contained in:
Peter Petrek 2022-01-19 17:47:23 +01:00
parent b8fb261544
commit a0dcf820f4

View File

@ -108,7 +108,7 @@ int solve_maze(char* maze, int size) {
}
}
//cleanup redundant routes
//cleanuup redundant routes
for (int y = size - 2; y >= 0; y--) {
for (int x = size - 2; x >= 0; x--) {
if (maze2d[y][x] == '*' && maze2d[y + 1][x] == '*' && maze2d[y + 1][x + 1] == '*' && maze2d[y][x + 1] == '*') {