diff options
author | elioat <elioat@tilde.institute> | 2024-12-27 08:12:33 -0500 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2024-12-27 08:12:33 -0500 |
commit | a7fea5f379187ea7e7ff643215b801832459ed67 (patch) | |
tree | 1071020c7e67eab53dc1de24592493930c546aca /html/rogue/js/player.js | |
parent | cbec006c83cbd51a8586ec8b4360b3e197e5d634 (diff) | |
download | tour-a7fea5f379187ea7e7ff643215b801832459ed67.tar.gz |
*
Diffstat (limited to 'html/rogue/js/player.js')
-rw-r--r-- | html/rogue/js/player.js | 2 |
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 |