mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 07:12:03 +00:00
Merge branch 'ping-catchup' into 'next'
Ping Catchup See merge request KartKrew/Kart-Public!302
This commit is contained in:
commit
df101848d1
1 changed files with 3 additions and 0 deletions
|
@ -6224,6 +6224,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