summaryrefslogtreecommitdiff
path: root/lunar.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2020-05-22 19:52:39 +0000
committerIan C <ianc@noddybox.co.uk>2020-05-22 19:52:39 +0000
commit6edc88713890849bfdfa936a20232915fc9d0eec (patch)
tree94c36bd72fdca2686d551c56a2a95d7082581a17 /lunar.c
parent7f414f4946354a3b960b1f6a15cfdad014d7e199 (diff)
Fixed key bounce on hiscore routine
Diffstat (limited to 'lunar.c')
-rw-r--r--lunar.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lunar.c b/lunar.c
index 86d0619..2a9cdc6 100644
--- a/lunar.c
+++ b/lunar.c
@@ -1671,7 +1671,7 @@ static XFuncControl ProcessHiScore(void)
if ((keymap[LEFT])&&(!bounce))
{
- bounce=30;
+ bounce=10;
if (let==hisc_let)
let=hisc_let+strlen(hisc_let)-1;
else
@@ -1680,7 +1680,7 @@ static XFuncControl ProcessHiScore(void)
if ((keymap[RIGHT])&&(!bounce))
{
- bounce=30;
+ bounce=10;
if (!(*++let))
let=hisc_let;
}
@@ -1690,11 +1690,11 @@ static XFuncControl ProcessHiScore(void)
case THRUST:
len++;
break;
- case NONE:
- bounce=0;
- break;
}
+ if (!keymap[LEFT] && !keymap[RIGHT] && !keymap[THRUST])
+ bounce=0;
+
if (bounce)
bounce--;