summaryrefslogtreecommitdiff
path: root/galax.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2020-05-22 19:47:42 +0000
committerIan C <ianc@noddybox.co.uk>2020-05-22 19:47:42 +0000
commit192b5413022f97f89261b0e0386e90e90c13e4c8 (patch)
tree5f8a98028fa65d8021827e51a05e42f93301d586 /galax.c
parentc872f619808a81d4b85784d8afcbd4ca9cec96eb (diff)
Fixed key bounce in hiscore entry
Diffstat (limited to 'galax.c')
-rw-r--r--galax.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/galax.c b/galax.c
index f7f58c8..7433943 100644
--- a/galax.c
+++ b/galax.c
@@ -1271,7 +1271,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
@@ -1280,7 +1280,7 @@ static XFuncControl ProcessHiScore(void)
if ((keymap[RIGHT])&&(!bounce))
{
- bounce=30;
+ bounce=10;
if (!(*++let))
let=hisc_let;
}
@@ -1290,11 +1290,11 @@ static XFuncControl ProcessHiScore(void)
case FIRE:
len++;
break;
- case NONE:
- bounce=0;
- break;
}
+ if (!keymap[LEFT] && !keymap[RIGHT] && !keymap[FIRE])
+ bounce=0;
+
if (bounce)
bounce--;