From: Matthew Mondor Date: Wed, 12 Apr 2023 09:23:07 +0000 (+0000) Subject: Fix a bug introduced when reworking the timer and input system. X-Git-Url: http://git.pulsar-zone.net/?a=commitdiff_plain;h=de8f8021fbc16c3dcc93091885786f1dc7e5a02c;p=pacman.git Fix a bug introduced when reworking the timer and input system. It caused the game to return in pause mode repeatedly once enabled. --- diff --git a/pacman.c b/pacman.c index 093f20a..79fc604 100755 --- a/pacman.c +++ b/pacman.c @@ -472,7 +472,7 @@ void GetInput() { case 'p': case 'P': //Pause game PauseGame(); -// chtmp = getch(); //Update buffered input + chtmp = getch(); //Update buffered input break; case 'q': case 'Q': //End program @@ -841,6 +841,7 @@ void PauseGame() { wrefresh(win); //And wait until key is pressed + (void)flushinp(); (void)curs_set(1); (void)nodelay(stdscr, FALSE); do {