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/sightLine.js')
-rw-r--r-- | src/modules/sightLine.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/sightLine.js b/src/modules/sightLine.js index de88521..4790bd8 100644 --- a/src/modules/sightLine.js +++ b/src/modules/sightLine.js @@ -170,8 +170,8 @@ export default class SightLine { update(cell, { x, y }) { const sl = this.svg.querySelector('.sight-line'), target = this.svg.querySelector('.sight-line-target').parentElement, - x1 = cell.parentElement.dataset.x, - y1 = cell.parentElement.parentElement.dataset.y, + x1 = cell.dataset.x, + y1 = cell.parentElement.dataset.y, x2 = target.dataset.x, y2 = target.parentElement.dataset.y; |