Clear sight line before drawing after unlocking

This commit is contained in:
Catalin Constantin Mititiuc 2025-06-16 22:41:29 -07:00
parent 0da0c51a45
commit 7455dd0173

View File

@ -250,6 +250,7 @@ export function start(el) {
sourceCell = selected.parentElement; sourceCell = selected.parentElement;
if (isOnBoard && (!sl || sl.classList.contains('active')) && sourceCell != cell) { if (isOnBoard && (!sl || sl.classList.contains('active')) && sourceCell != cell) {
clearSightLine();
drawSightLine(sourceCell, cell); drawSightLine(sourceCell, cell);
} }
} }