Kick clients that fail to catch up with server gamelogic

This commit is contained in:
Louis-Antoine 2020-10-21 20:25:29 +02:00
parent 1cd73315f1
commit 5091c19abf

View file

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