about summary refs log tree commit diff stats
path: root/html/rogue/js/player.js
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2024-12-27 08:12:33 -0500
committerelioat <elioat@tilde.institute>2024-12-27 08:12:33 -0500
commita7fea5f379187ea7e7ff643215b801832459ed67 (patch)
tree1071020c7e67eab53dc1de24592493930c546aca /html/rogue/js/player.js
parentcbec006c83cbd51a8586ec8b4360b3e197e5d634 (diff)
downloadtour-a7fea5f379187ea7e7ff643215b801832459ed67.tar.gz
*
Diffstat (limited to 'html/rogue/js/player.js')
-rw-r--r--html/rogue/js/player.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/html/rogue/js/player.js b/html/rogue/js/player.js
index 803a6b7..e35db31 100644
--- a/html/rogue/js/player.js
+++ b/html/rogue/js/player.js
@@ -17,7 +17,7 @@ const player = {
     // Check if a hex coordinate is within grid bounds
     isValidHex(hex) {
         const halfGrid = Math.floor(HexGrid.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;
     },
 
     // Get neighbors that share an edge with the given hex