about summary refs log tree commit diff stats
path: root/html/rogue/js/hexGrid.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/rogue/js/hexGrid.js')
-rw-r--r--html/rogue/js/hexGrid.js2
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