mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-15 15:31:47 +00:00
gl_screen.c:SCR_ModalMessage(): sleep a little while busy-waiting.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@610 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
7a574b265e
commit
d16f04cda7
1 changed files with 1 additions and 0 deletions
|
@ -884,6 +884,7 @@ int SCR_ModalMessage (const char *text, float timeout) //johnfitz -- timeout
|
|||
key_count = -1; // wait for a key down and up
|
||||
Sys_SendKeyEvents ();
|
||||
if (timeout) time2 = Sys_DoubleTime (); //johnfitz -- zero timeout means wait forever.
|
||||
Sys_Sleep(16);
|
||||
} while (key_lastpress != 'y' &&
|
||||
key_lastpress != 'n' &&
|
||||
key_lastpress != K_ESCAPE &&
|
||||
|
|
Loading…
Reference in a new issue