diff options
author | Ian C <ianc@noddybox.co.uk> | 2020-05-22 19:52:39 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2020-05-22 19:52:39 +0000 |
commit | 6edc88713890849bfdfa936a20232915fc9d0eec (patch) | |
tree | 94c36bd72fdca2686d551c56a2a95d7082581a17 /lunar.c | |
parent | 7f414f4946354a3b960b1f6a15cfdad014d7e199 (diff) |
Fixed key bounce on hiscore routine
Diffstat (limited to 'lunar.c')
-rw-r--r-- | lunar.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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--; |