From 192b5413022f97f89261b0e0386e90e90c13e4c8 Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 22 May 2020 19:47:42 +0000 Subject: Fixed key bounce in hiscore entry --- galax.c | 10 +++++----- 1 file 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--; -- cgit v1.2.3