Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-06-28 09:22:10 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-06-28 09:22:10 -0700
commit578b42fbcfa15661bbaa36f99e7513cffbd20780 (patch)
treed863d33fc51a46ec8abfa42e9ad08f8ffe740d11 /src/modules/gameboard.js
parent7364c01efe774b4f48a3f6c32a2648dab028b6b4 (diff)
Fix vectorAdd calculation; draw grid hexes after buildings
Diffstat (limited to 'src/modules/gameboard.js')
-rw-r--r--src/modules/gameboard.js3
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) {