From 8373409e135a58509cc41051af221d429c4b3d25 Mon Sep 17 00:00:00 2001 From: Marcel Date: Fri, 11 May 2018 11:09:52 +0200 Subject: [PATCH] Fix clicking bug --- minesweeper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minesweeper.js b/minesweeper.js index 4e1d9b7..1a0a476 100644 --- a/minesweeper.js +++ b/minesweeper.js @@ -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) {