mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
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:
parent
e403cebc65
commit
e79171082f
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue