mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:37:36 +00:00
Minesweeper: Make sure first tile revealed is always blank (#1164)
This commit is contained in:
parent
f9609fe08a
commit
2ed660490d
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ void Field::paint_event(GPaintEvent& event)
|
||||||
void Field::on_square_clicked_impl(Square& square, bool should_flood_fill)
|
void Field::on_square_clicked_impl(Square& square, bool should_flood_fill)
|
||||||
{
|
{
|
||||||
if (m_first_click) {
|
if (m_first_click) {
|
||||||
while (square.has_mine) {
|
while (square.has_mine || square.number != 0) {
|
||||||
reset();
|
reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue