From de8f8021fbc16c3dcc93091885786f1dc7e5a02c Mon Sep 17 00:00:00 2001 From: Matthew Mondor Date: Wed, 12 Apr 2023 09:23:07 +0000 Subject: [PATCH] Fix a bug introduced when reworking the timer and input system. It caused the game to return in pause mode repeatedly once enabled. --- pacman.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.9.0