1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:57:35 +00:00

Minesweeper: Make sure first tile revealed is always blank (#1164)

This commit is contained in:
pfg 2020-02-02 03:07:23 -08:00 committed by GitHub
parent f9609fe08a
commit 2ed660490d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -339,7 +339,7 @@ void Field::paint_event(GPaintEvent& event)
void Field::on_square_clicked_impl(Square& square, bool should_flood_fill)
{
if (m_first_click) {
while (square.has_mine) {
while (square.has_mine || square.number != 0) {
reset();
}
}