index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/modules/game')
-rw-r--r-- | src/modules/game/soldier.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/game/soldier.js b/src/modules/game/soldier.js index 81dce74..8e5774b 100644 --- a/src/modules/game/soldier.js +++ b/src/modules/game/soldier.js @@ -124,14 +124,14 @@ export function place(svg, selected, cell) { // piecesContainer.append(container); //} - if (svg.querySelector('.grid').contains(selected)) { - const clone = addMoveToHistory(selected); - updatePlacement(cell, selected, clone) - handleTrace(svg, selected, clone, getCellPosition(cell)); - } else { - selected.removeAttribute('data-x'); + //if (svg.querySelector('.grid').contains(selected)) { + // const clone = addMoveToHistory(selected); + // updatePlacement(cell, selected, clone) + // handleTrace(svg, selected, clone, getCellPosition(cell)); + //} else { + // selected.removeAttribute('data-x'); placeIn(cell, selected); - } + //} } export function removeClones(svg, counter) { |