Fix keys accumulating while paused
This commit is contained in:
parent
54381370c0
commit
4838bb189b
@ -1060,6 +1060,12 @@ class Player extends PrimaryView {
|
|||||||
|
|
||||||
this.state = new_state;
|
this.state = new_state;
|
||||||
|
|
||||||
|
// Drop any "new" keys when switching into playing, since they accumulate freely as long as
|
||||||
|
// the game isn't actually running
|
||||||
|
if (new_state === 'playing') {
|
||||||
|
this.current_keys_new.clear();
|
||||||
|
}
|
||||||
|
|
||||||
// Populate the overlay
|
// Populate the overlay
|
||||||
let overlay_reason = '';
|
let overlay_reason = '';
|
||||||
let overlay_top = '';
|
let overlay_top = '';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user