From 6edc88713890849bfdfa936a20232915fc9d0eec Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 22 May 2020 19:52:39 +0000 Subject: Fixed key bounce on hiscore routine --- lunar.c | 10 +++++----- 1 file 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--; -- cgit v1.2.3