Fix clicking bug

This commit is contained in:
Marcel
2018-05-11 11:09:52 +02:00
parent f2c87257fb
commit 8373409e13

View File

@@ -402,7 +402,7 @@ function testFlagPositions() {
}
function tileClickEvent(x, y) {
if (gameOver || victory)
if (gameOver || victoryCheck())
return;
uncoverTile(x, y);
if (!field[x][y].flagged && field[x][y].tileValue === true) {