Web Dev Solutions

Catalin Mititiuc

From a4888a3e0905f3561781cb0ef4686befc0dff122 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Sun, 28 Apr 2024 16:52:34 -0700 Subject: Clear sight line before drawing after unlocking --- src/modules/gameboard.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/modules') 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); } } -- cgit v1.2.3