sdl wait code possible fix

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3161 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2009-04-07 03:38:08 +00:00
parent e403cebc65
commit e79171082f

View file

@ -341,7 +341,8 @@ int main(int argc, char **argv)
#endif
{
// yield the CPU for a little while when paused, minimized, or not the focus
NET_Sleep(1, false);
if (!(SDL_GetAppState() & SDL_APPACTIVE))
SDL_Wait(1);
newtime = Sys_DoubleTime ();
time = newtime - oldtime;