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-30 21:35:31 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-30 21:35:31 -0700 |
commit | b008407808b4c10a94737f50c3fbde429a026454 (patch) | |
tree | 6e30a9ca630fdad8e6387cc0afb10c3953916d57 | |
parent | a3bf726e40fe4ed529bdefa83c977af4b72791a9 (diff) |
Clear placing stack on unselect
-rw-r--r-- | src/modules/gameboard.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/gameboard.js b/src/modules/gameboard.js index 2df5b36..e20949a 100644 --- a/src/modules/gameboard.js +++ b/src/modules/gameboard.js @@ -289,9 +289,9 @@ export function select(selected) { export function unSelect() { const selected = getSelected(); + placing = []; if (selected) { - placing = []; getSelected().classList.remove(soldier.getSelectedClass()); clearSightLine(); firingArc.clipAll(svg); |