mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +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
4473b6852f
commit
d86081cb8a
1 changed files with 3 additions and 0 deletions
|
@ -6221,6 +6221,9 @@ INT32 D_NumPlayers(void)
|
|||
|
||||
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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue