From a7fea5f379187ea7e7ff643215b801832459ed67 Mon Sep 17 00:00:00 2001 From: elioat Date: Fri, 27 Dec 2024 08:12:33 -0500 Subject: * --- html/rogue/js/player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'html/rogue/js/player.js') 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 -- cgit 1.4.1-2-gfad0