Fix vectorAdd calculation; draw grid hexes after buildings

This commit is contained in:
2024-06-28 09:22:10 -07:00
parent 7364c01efe
commit 578b42fbcf
4 changed files with 29 additions and 8 deletions

View File

@@ -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) {