mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-02 22:11:22 +00:00
gl_screen.c:SCR_ModalMessage(): sleep a little while busy-waiting.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@610 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
7926cc5bf3
commit
b714fbb601
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