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:
Sander van Dijk 2012-01-17 08:34:54 +00:00
parent 7926cc5bf3
commit b714fbb601

View file

@ -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 &&