]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
prevent speedhack 3.0: initialize the movetime, so a speedhack can't make use of...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 9 Oct 2007 21:41:47 +0000 (21:41 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 9 Oct 2007 21:41:47 +0000 (21:41 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7620 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 4e37f66d86fd04f59331c787749091194248766f..b2afd2637b4152126bac82dd6eebca8988932e96 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -699,6 +699,9 @@ void SV_SendServerinfo (client_t *client)
        // LordHavoc: clear entityframe tracking
        client->latestframenum = 0;
 
+       // initialize the movetime, so a speedhack can't make use of the time before this client joined
+       client->cmd.time = sv.time;
+
        if (client->entitydatabase)
                EntityFrame_FreeDatabase(client->entitydatabase);
        if (client->entitydatabase4)