diff options
Diffstat (limited to 'html/rogue/js/hexGrid.js')
-rw-r--r-- | html/rogue/js/hexGrid.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/html/rogue/js/hexGrid.js b/html/rogue/js/hexGrid.js index 0d4d81f..0d1c2e5 100644 --- a/html/rogue/js/hexGrid.js +++ b/html/rogue/js/hexGrid.js @@ -62,6 +62,6 @@ const HexGrid = { // Add this method to check if a hex is passable isPassable(hex) { const halfGrid = Math.floor(this.GRID_SIZE / 2); - return Math.abs(hex.q) < halfGrid && Math.abs(hex.r) < halfGrid; + return Math.abs(hex.q) <= halfGrid && Math.abs(hex.r) <= halfGrid; } }; \ No newline at end of file |