Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
}