index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-28 16:52:34 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-28 16:52:34 -0700 |
commit | a4888a3e0905f3561781cb0ef4686befc0dff122 (patch) | |
tree | bf22e6b2a729d00505aaa32ffe82ddec157a9903 /src | |
parent | 3e521e2f64809edc47f50f7215a6a05dd32b69dc (diff) |
Clear sight line before drawing after unlocking
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/gameboard.js | 1 |
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); } } |