mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
If the client has caught up to the server -- say, during a wipe -- make GetLag return a ping of zero
Should fix the momentarily large ping bug.
This commit is contained in:
parent
c9035c3f91
commit
8931522627
1 changed files with 3 additions and 0 deletions
|
|
@ -5625,6 +5625,9 @@ boolean D_IsPlayerHumanAndGaming (INT32 player_number)
|
||||||
|
|
||||||
tic_t GetLag(INT32 node)
|
tic_t GetLag(INT32 node)
|
||||||
{
|
{
|
||||||
|
// If the client has caught up to the server -- say, during a wipe -- lag is meaningless.
|
||||||
|
if (nettics[node] > gametic)
|
||||||
|
return 0;
|
||||||
return gametic - nettics[node];
|
return gametic - nettics[node];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue