From 2028218879934aa4afc6dee7adf9566d636b0f3e Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Mon, 10 Mar 2025 12:16:37 +0000 Subject: [PATCH] adding comments --- src/minefield.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/minefield.cpp b/src/minefield.cpp index 071f947..0f299bb 100644 --- a/src/minefield.cpp +++ b/src/minefield.cpp @@ -119,6 +119,7 @@ void MineField::setOpenCell(int x, int y) { m_cells.at(x + y * m_rows)->isCleared = true; openCellSignal.emit(x, y); if((++m_openCells == (m_cols * m_rows - m_totalMines)) && (m_exploded == false)) { + m_gameWon = true; gameWonSignal.emit(); } }