mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
More consistently time out people nearing the end of the BACKUPTICS, not just if they cross the line, to match desired v1 behaviour
This commit is contained in:
parent
0da626807c
commit
34540b9caa
1 changed files with 11 additions and 10 deletions
|
|
@ -5883,19 +5883,20 @@ void NetUpdate(void)
|
||||||
|
|
||||||
hu_redownloadinggamestate = false;
|
hu_redownloadinggamestate = false;
|
||||||
|
|
||||||
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
|
// Don't erase tics not acknowledged
|
||||||
counts = realtics;
|
counts = realtics;
|
||||||
|
|
||||||
|
firstticstosend = gametic;
|
||||||
|
for (i = 0; i < MAXNETNODES; i++)
|
||||||
|
{
|
||||||
|
if (!nodeingame[i])
|
||||||
|
continue;
|
||||||
|
if (nettics[i] < firstticstosend)
|
||||||
|
firstticstosend = nettics[i];
|
||||||
|
if (maketic + counts >= nettics[i] + (BACKUPTICS - TICRATE))
|
||||||
|
Net_ConnectionTimeout(i);
|
||||||
|
}
|
||||||
|
|
||||||
if (maketic + counts >= firstticstosend + BACKUPTICS)
|
if (maketic + counts >= firstticstosend + BACKUPTICS)
|
||||||
counts = firstticstosend+BACKUPTICS-maketic-1;
|
counts = firstticstosend+BACKUPTICS-maketic-1;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue