From: divverent Date: Tue, 9 Oct 2007 21:41:47 +0000 (+0000) Subject: prevent speedhack 3.0: initialize the movetime, so a speedhack can't make use of... X-Git-Tag: xonotic-v0.1.0preview~2859 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=fc6336cc0d825f362953e56fc7c1c3c32e7fdadb;p=xonotic%2Fdarkplaces.git prevent speedhack 3.0: initialize the movetime, so a speedhack can't make use of the time before this client joined git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7620 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index 4e37f66d..b2afd263 100644 --- 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)