mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
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:
commit
e8b6f9db5e
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue