From bf8b55a9c9b5585945ab963a65ad1b4584566b12 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Sat, 6 Mar 2021 22:52:03 -0700 Subject: [PATCH] Clear swap_player1 more aggressively --- js/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/game.js b/js/game.js index 51ce50d..2827f04 100644 --- a/js/game.js +++ b/js/game.js @@ -1020,6 +1020,7 @@ export class Level extends LevelInterface { _set_p1_input(p1_input) { this.p1_input = p1_input; this.p1_released |= ~p1_input; // Action keys released since we last checked them + this.swap_player1 = false; } _do_init_phase() { @@ -1055,7 +1056,6 @@ export class Level extends LevelInterface { this.pending_undo.level_props[key] = this[key]; } } - this.swap_player1 = false; this.sfx.set_player_position(this.player.cell); }