We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86fcb65 commit 38fddfcCopy full SHA for 38fddfc
views/minesweeper_game_screen.c
@@ -330,7 +330,7 @@ static inline void bfs_tile_clear(MineSweeperGameScreenModel* model) {
330
Point curr_pos = pointobj_get_point(pos);
331
uint16_t curr_pos_1d = curr_pos.x * model->board_width + curr_pos.y;
332
333
- // If in visited continue
+ // If in visited set continue
334
if (point_set_cget(set, pos) != NULL) {
335
continue;
336
}
@@ -356,6 +356,7 @@ static inline void bfs_tile_clear(MineSweeperGameScreenModel* model) {
356
357
358
359
+ // Search all neighbors and add valid to dequeue
360
for (uint8_t i = 0; i < 8; i++) {
361
int16_t dx = curr_pos.x + (int16_t)offsets[i][0];
362
int16_t dy = curr_pos.y + (int16_t)offsets[i][1];
0 commit comments