Merge branch 'catchup-timeout' into 'next'

Kick clients that fail to catch up with server gamelogic

See merge request STJr/SRB2!1208
This commit is contained in:
LJ Sonic 2020-10-23 16:19:10 -04:00
commit 787ec250b3

View file

@ -5611,8 +5611,13 @@ void NetUpdate(void)
firstticstosend = gametic;
for (i = 0; i < MAXNETNODES; i++)
if (nodeingame[i] && nettics[i] < firstticstosend)
{
firstticstosend = nettics[i];
if (maketic + 1 >= nettics[i] + BACKUPTICS)
Net_ConnectionTimeout(i);
}
// Don't erase tics not acknowledged
counts = realtics;