Emit wire pulses in reverse reading order

Fixes the replay for CC2LP1 #67 Before My Very Eyes.
This commit is contained in:
Eevee (Evelyn Woods) 2024-04-12 04:00:37 -06:00
parent 52bc2bdf8e
commit a06f53af29

View File

@ -668,7 +668,7 @@ export class Level extends LevelInterface {
} }
} }
this.wired_outputs = Array.from(wired_outputs); 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) { if (! first_time) {
// Update wireables // Update wireables