sv_main.c: Set the client's last_check field to -1 on connect. Unless a

player connects immediately after a timekick sample, their time WILL be
off, so don't look at them the first sample.

sv_user.c: Another location to enforce sv_maxrate, make sv_timekick and
friends ignore a user's time if it's -1, and apply double fuzz to times
lower than we expect -- it's way too sensitive otherwise. Also, some
whitespace changes.
This commit is contained in:
Jeff Teunissen 2000-11-26 12:43:49 +00:00
parent d480e59d71
commit d82b6a2e88
2 changed files with 72 additions and 71 deletions

View file

@ -837,7 +837,7 @@ SVC_DirectConnect (void)
// QuakeForge stuff.
newcl->msecs = 0;
newcl->msec_cheating = 0;
newcl->last_check = realtime;
newcl->last_check = -1;
}