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-06-28 09:22:10 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-06-28 09:22:10 -0700 |
commit | 578b42fbcfa15661bbaa36f99e7513cffbd20780 (patch) | |
tree | d863d33fc51a46ec8abfa42e9ad08f8ffe740d11 /src/modules/gameboard.js | |
parent | 7364c01efe774b4f48a3f6c32a2648dab028b6b4 (diff) |
Fix vectorAdd calculation; draw grid hexes after buildings
Diffstat (limited to 'src/modules/gameboard.js')
-rw-r--r-- | src/modules/gameboard.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/gameboard.js b/src/modules/gameboard.js index d9919ec..afb582b 100644 --- a/src/modules/gameboard.js +++ b/src/modules/gameboard.js @@ -23,7 +23,8 @@ function getCellOccupant(cell) { } function getCells(svg) { - return svg.querySelectorAll('g.grid > g[data-y] > g[data-x]'); + // return svg.querySelectorAll('g.grid > g[data-y] > g[data-x]'); + return svg.querySelectorAll('[data-q][data-r][data-s][data-t]'); } function getLockedSightLine(svg) { |