From adb0c4c8691d38bb776e546b5b3de7170f98500e Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Sat, 26 Dec 2020 04:34:24 -0700 Subject: [PATCH] Fix the search radius for orange buttons --- js/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/game.js b/js/game.js index afb3244..ef9f056 100644 --- a/js/game.js +++ b/js/game.js @@ -1829,7 +1829,7 @@ export class Level extends LevelInterface { // Iterates over the grid in a diamond pattern, spreading out from the given start cell (but not // including it). Only used for connecting orange buttons. *iter_cells_in_diamond(start_cell) { - let max_search_radius = Math.max(this.size_x, this.size_y); + let max_search_radius = Math.max(this.size_x, this.size_y) + 1; for (let dist = 1; dist <= max_search_radius; dist++) { // Start east and move counterclockwise let sx = start_cell.x + dist;