From fc6336cc0d825f362953e56fc7c1c3c32e7fdadb Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 9 Oct 2007 21:41:47 +0000 Subject: [PATCH] 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 --- sv_main.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.39.2