Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-04-28 16:52:34 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-04-28 16:52:34 -0700
commita4888a3e0905f3561781cb0ef4686befc0dff122 (patch)
treebf22e6b2a729d00505aaa32ffe82ddec157a9903 /src/modules
parent3e521e2f64809edc47f50f7215a6a05dd32b69dc (diff)
Clear sight line before drawing after unlocking
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/gameboard.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/gameboard.js b/src/modules/gameboard.js
index 9d054d0..5a804a3 100644
--- a/src/modules/gameboard.js
+++ b/src/modules/gameboard.js
@@ -250,6 +250,7 @@ export function start(el) {
sourceCell = selected.parentElement;
if (isOnBoard && (!sl || sl.classList.contains('active')) && sourceCell != cell) {
+ clearSightLine();
drawSightLine(sourceCell, cell);
}
}