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:
parent
96d279adaf
commit
e4b02f6c6c
1 changed files with 3 additions and 2 deletions
|
@ -3159,7 +3159,7 @@ void SV_CheckTimeouts (void)
|
|||
}
|
||||
}
|
||||
}
|
||||
if (sv.paused && !nclients)
|
||||
if ((sv.paused&1) && !nclients)
|
||||
{
|
||||
// nobody left, unpause the server
|
||||
if (SV_TogglePause(NULL))
|
||||
|
@ -3365,7 +3365,8 @@ void SV_Frame (void)
|
|||
sv.gamespeed = 1;
|
||||
|
||||
#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
|
||||
|
||||
if (oldpaused != sv.paused)
|
||||
|
|
Loading…
Reference in a new issue