summaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2018-08-15 19:55:25 +0200
committerRicardo Wurmus <rekado@elephly.net>2018-08-15 19:55:25 +0200
commitd991fd8e63bbf90d2ee9efb688ab8cd76d2a0f9f (patch)
tree22ad87c22e5160cda855c48834bc90849132d5d0 /scenes
parent68e58d6fce955ac07c5409b0cd062bf6cfb6cf46 (diff)
Ignore repeating key presses.
Diffstat (limited to 'scenes')
-rw-r--r--scenes/game.scm2
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)))))))