From a3c90a433906851daeaa625ef9442e820bd082ca Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Mon, 15 Jul 2019 21:30:30 -0400 Subject: [RC] Bugfix + Bugfix where when a checked mine is cleared by the internal engine the "checked mines" (checked) count does not decrease --- mines.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mines.js') 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){ -- cgit v1.2.3