diff options
| author | fschildt <florian.schildt@protonmail.com> | 2025-10-09 16:13:28 +0200 |
|---|---|---|
| committer | fschildt <florian.schildt@protonmail.com> | 2025-10-09 16:13:28 +0200 |
| commit | 6f3590341312b0ffff2304d02b24ac6a5d14b182 (patch) | |
| tree | 40a6f66ea548377f0114af29cc17a8692e83a141 /src/games/minesweeper/Minesweeper.cpp | |
| parent | 606d028dac5118329e7561af33b15988db84465f (diff) | |
tetris: optimize next tetromino, fix first count
Diffstat (limited to 'src/games/minesweeper/Minesweeper.cpp')
| -rw-r--r-- | src/games/minesweeper/Minesweeper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/games/minesweeper/Minesweeper.cpp b/src/games/minesweeper/Minesweeper.cpp index e110acb..f6b02ac 100644 --- a/src/games/minesweeper/Minesweeper.cpp +++ b/src/games/minesweeper/Minesweeper.cpp @@ -223,11 +223,11 @@ Minesweeper::ProcessEventDuringResume(SDL_Event &event) void Minesweeper::Uncover(int32_t x, int32_t y) { - if (x < 0) return; + if (x < 0) return; if (x >= m_grid_width) return; - if (y < 0) return; + if (y < 0) return; if (y >= m_grid_height) return; - if (!IsCovered(x, y)) return; + if (!IsCovered(x, y)) return; m_is_covered_bitmap[y] &= ~(1 << x); if (IsFlagged(x, y)) { |
