This commit is contained in:
Peter Petrek 2022-01-19 17:49:01 +01:00
parent a0dcf820f4
commit 37b2141053

View File

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