master
thunic 2 years ago
parent 7651099e75
commit 3dcb73fb4e

@ -194,6 +194,9 @@ int revealCell(int** gameBoard, int** hiddenGameBoard, int size, int row, int co
handleBombExploded(); handleBombExploded();
return 0; return 0;
} }
if (gameBoard[pos.row][pos.col] == FLAG_CELL){
return 1;
}
// Wenn die Zelle leer ist, müssen auch benachbarte leere Zellen aufgedeckt werden // Wenn die Zelle leer ist, müssen auch benachbarte leere Zellen aufgedeckt werden
if (gameBoard[pos.row][pos.col] == EMPTY_CELL) { if (gameBoard[pos.row][pos.col] == EMPTY_CELL) {

Loading…
Cancel
Save