From dec3161565c862fca63413cce45195bd07748829 Mon Sep 17 00:00:00 2001 From: svdijk Date: Thu, 19 Jan 2012 19:09:23 +0000 Subject: [PATCH] gl_screen.c:SCR_ModalMessage(): make sure we don't ignore the next keypress (after a timeout). git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@613 af15c1b1-3010-417e-b628-4374ebc0bcbd --- quakespasm/Quake/gl_screen.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quakespasm/Quake/gl_screen.c b/quakespasm/Quake/gl_screen.c index febb08fa..b2af2895 100644 --- a/quakespasm/Quake/gl_screen.c +++ b/quakespasm/Quake/gl_screen.c @@ -890,6 +890,10 @@ int SCR_ModalMessage (const char *text, float timeout) //johnfitz -- timeout key_lastpress != K_ESCAPE && time2 <= time1); + // make sure we don't ignore the next keypress + if (key_count < 0) + key_count = 0; + // SCR_UpdateScreen (); //johnfitz -- commented out //johnfitz -- timeout