Don't let key repeat interfere with the restart timer

This commit is contained in:
Eevee (Evelyn Woods) 2024-04-12 19:03:24 -06:00
parent fe4c111fa9
commit cddc274701

View File

@ -751,7 +751,9 @@ class Player extends PrimaryView {
} }
if (ev.key === 'r') { if (ev.key === 'r') {
this.start_restarting(); if (! this._restart_handle) {
this.start_restarting();
}
return; return;
} }
@ -4010,6 +4012,7 @@ class Conductor {
// FIXME this breaks if you do it from the editor bc update_tileset hasn't // FIXME this breaks if you do it from the editor bc update_tileset hasn't
// been called yet bc that happens in load_level which is deferred... but // been called yet bc that happens in load_level which is deferred... but
// then why does it work from splash?? // then why does it work from splash??
// FIXME it doesn't work from splash lmao
this.player.setup_debug(); this.player.setup_debug();
}, },
).open(); ).open();