mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-17 01:11:18 +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
|
#endif
|
||||||
{
|
{
|
||||||
// yield the CPU for a little while when paused, minimized, or not the focus
|
// 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 ();
|
newtime = Sys_DoubleTime ();
|
||||||
time = newtime - oldtime;
|
time = newtime - oldtime;
|
||||||
|
|
Loading…
Reference in a new issue