forked from fte/fteqw
1
0
Fork 0

Fix the annoying server-starts-paused bug that I added with a recent commit.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3593 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2010-08-18 21:56:46 +00:00
parent 96d279adaf
commit e4b02f6c6c
1 changed files with 3 additions and 2 deletions

View File

@ -3159,7 +3159,7 @@ void SV_CheckTimeouts (void)
} }
} }
} }
if (sv.paused && !nclients) if ((sv.paused&1) && !nclients)
{ {
// nobody left, unpause the server // nobody left, unpause the server
if (SV_TogglePause(NULL)) if (SV_TogglePause(NULL))
@ -3365,7 +3365,8 @@ void SV_Frame (void)
sv.gamespeed = 1; sv.gamespeed = 1;
#ifndef SERVERONLY #ifndef SERVERONLY
sv.paused = (sv.paused & ~4) | ((!isDedicated && sv.allocated_client_slots == 1 && key_dest != key_game)?4:0); if ((sv.paused & 4) != ((!isDedicated && sv.allocated_client_slots == 1 && key_dest != key_game)?4:0))
sv.paused ^= 4;
#endif #endif
if (oldpaused != sv.paused) if (oldpaused != sv.paused)