summaryrefslogtreecommitdiff
path: root/mines.js
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2019-07-15 21:30:30 -0400
committerKyle Gunger <kgunger12@gmail.com>2019-07-15 21:30:30 -0400
commita3c90a433906851daeaa625ef9442e820bd082ca (patch)
tree5459a5ab214e5a84c254cf99348582374a284adf /mines.js
parent278f2ff2d0888893b30b4179dd3400201af1fa1b (diff)
[RC] Bugfix
+ Bugfix where when a checked mine is cleared by the internal engine the "checked mines" (checked) count does not decrease
Diffstat (limited to 'mines.js')
-rw-r--r--mines.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/mines.js b/mines.js
index beae4d8..872bf51 100644
--- a/mines.js
+++ b/mines.js
@@ -189,6 +189,8 @@ Board.prototype = {
let n = this.numAround(x, y);
let e = this.getMineEl(x, y);
+ if(e.textContent == "!") return;
+
e.className = "chkd";
if(n !== 0){