From e13c6badeb44429ca4839534c57ddcc0048cf4e5 Mon Sep 17 00:00:00 2001 From: Alex Rodriguez Date: Thu, 11 Jan 2024 11:41:46 -0800 Subject: [PATCH] fixed bug with bfs_tile clear clearing flagged tiles --- views/minesweeper_game_screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/minesweeper_game_screen.c b/views/minesweeper_game_screen.c index b6db362..751f152 100644 --- a/views/minesweeper_game_screen.c +++ b/views/minesweeper_game_screen.c @@ -562,8 +562,8 @@ static inline uint16_t bfs_tile_clear( continue; } - // If it is cleared continue - if (board[curr_pos_1d].tile_state == MineSweeperGameScreenTileStateCleared) { + // If it is not uncleared continue + if (board[curr_pos_1d].tile_state != MineSweeperGameScreenTileStateUncleared) { continue; }