Skip to content

Commit

Permalink
r.accumulate: Do not repeat the same assignments (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
HuidaeCho committed Sep 14, 2020
1 parent 1f150f9 commit a5133b3
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -102,11 +102,8 @@ static void trace_up(struct cell_map *dir_buf, char **done, int row, int col,
* map and trace up further; no check for flow loop is needed
* because dir_buf is being overwritten */
if (dir_buf->c[row + i][col + j] == dir_checks[i + 1][j + 1][0] &&
!done[row + i][col + j]) {
dir_buf->c[row][col] = id;
done[row][col] = 1;
!done[row + i][col + j])
trace_up(dir_buf, done, row + i, col + j, id);
}
}
}
}

0 comments on commit a5133b3

Please sign in to comment.