From a06f53af2934c8a55cd70c3ce970e53607b6d8e0 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Fri, 12 Apr 2024 04:00:37 -0600 Subject: [PATCH] Emit wire pulses in reverse reading order Fixes the replay for CC2LP1 #67 Before My Very Eyes. --- js/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/game.js b/js/game.js index 65a3d0d..6afa8ec 100644 --- a/js/game.js +++ b/js/game.js @@ -668,7 +668,7 @@ export class Level extends LevelInterface { } } this.wired_outputs = Array.from(wired_outputs); - this.wired_outputs.sort((a, b) => this.coords_to_scalar(a.cell.x, a.cell.y) - this.coords_to_scalar(b.cell.x, b.cell.y)); + this.wired_outputs.sort((a, b) => this.coords_to_scalar(b.cell.x, b.cell.y) - this.coords_to_scalar(a.cell.x, a.cell.y)); if (! first_time) { // Update wireables