From 7455dd01737dbc5c4031e078cc88efbe2a5c6137 Mon Sep 17 00:00:00 2001 From: Catalin Constantin Mititiuc Date: Mon, 16 Jun 2025 22:41:29 -0700 Subject: [PATCH] Clear sight line before drawing after unlocking --- src/modules/gameboard.js | 1 + 1 file changed, 1 insertion(+) 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); } }