Don't let key repeat interfere with the restart timer
This commit is contained in:
parent
fe4c111fa9
commit
cddc274701
@ -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();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user