diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2018-08-15 19:55:25 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2018-08-15 19:55:25 +0200 |
commit | d991fd8e63bbf90d2ee9efb688ab8cd76d2a0f9f (patch) | |
tree | 22ad87c22e5160cda855c48834bc90849132d5d0 | |
parent | 68e58d6fce955ac07c5409b0cd062bf6cfb6cf46 (diff) |
Ignore repeating key presses.
-rw-r--r-- | scenes/game.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scenes/game.scm b/scenes/game.scm index 2533310..f49a17a 100644 --- a/scenes/game.scm +++ b/scenes/game.scm @@ -225,7 +225,7 @@ positions layer." (when (eq? key 'q) (die game)) (let ((who (talking? player))) (cond - ((and (not who) (eq? 'space key)) + ((and (not who) (eq? 'space key) (not repeat?)) (handle-action player)) ((and who (not repeat?)) (handle-talking player key))))))) |