mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
gl_screen.c:SCR_ModalMessage(): make sure we don't ignore the next keypress (after a timeout).
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@613 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
f53eccda96
commit
2eaf8974b7
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue