Don't let spammed centerprints/h2plaques result in disconnections.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3598 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
4948652e17
commit
2e9336eb91
4 changed files with 61 additions and 38 deletions
|
@ -521,6 +521,10 @@ void SV_DropClient (client_t *drop)
|
|||
break;
|
||||
}
|
||||
|
||||
if (drop->centerprintstring)
|
||||
Z_Free(drop->centerprintstring);
|
||||
drop->centerprintstring = NULL;
|
||||
|
||||
if (drop->spectator)
|
||||
Con_Printf ("Spectator %s removed\n",drop->name);
|
||||
else
|
||||
|
@ -3382,7 +3386,7 @@ void SV_Frame (void)
|
|||
if (sv.time < oldtime)
|
||||
sv.time = oldtime; //urm
|
||||
|
||||
if (sv.paused)
|
||||
if (sv.paused && sv.time > 1.5)
|
||||
{
|
||||
sv.starttime += sv.time - oldtime; //move the offset
|
||||
sv.time = oldtime; //and keep time as it was.
|
||||
|
@ -3453,7 +3457,7 @@ void SV_MVDStream_Poll(void);
|
|||
}
|
||||
|
||||
// move autonomous things around if enough time has passed
|
||||
if (!sv.paused)
|
||||
if (!sv.paused || sv.time < 1.5)
|
||||
{
|
||||
#ifdef Q2SERVER
|
||||
//q2 is idle even if clients sent packets.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue