From 578b42fbcfa15661bbaa36f99e7513cffbd20780 Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Fri, 28 Jun 2024 09:22:10 -0700
Subject: Fix vectorAdd calculation; draw grid hexes after buildings
---
src/modules/gameboard.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(limited to 'src/modules/gameboard.js')
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) {
--
cgit v1.2.3