Fix clicking bug
This commit is contained in:
@@ -402,7 +402,7 @@ function testFlagPositions() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function tileClickEvent(x, y) {
|
function tileClickEvent(x, y) {
|
||||||
if (gameOver || victory)
|
if (gameOver || victoryCheck())
|
||||||
return;
|
return;
|
||||||
uncoverTile(x, y);
|
uncoverTile(x, y);
|
||||||
if (!field[x][y].flagged && field[x][y].tileValue === true) {
|
if (!field[x][y].flagged && field[x][y].tileValue === true) {
|
||||||
|
Reference in New Issue
Block a user