]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_phys.c
test alpha
[xonotic/darkplaces.git] / sv_phys.c
index a72a7ca6acf5b8a0142c5df48bc506834fb4635c..b8c7f280098a66539aee5a8224de0c61db85e2d3 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -3015,6 +3015,18 @@ static void SV_Physics_ClientEntity_PreThink(prvm_edict_t *ent)
        {
                SV_PlayerPhysics();
                //host_client->cmd.time = max(host_client->cmd.time, sv.time);
+
+               if (host_client->movesequence)
+               {
+                       // client was in async mode but timed out
+                       //if (sv_clmovement_inputtimeout_correct.integer) // commented cos we actually need this for _strict
+                               host_client->clmovement_inputtimeout_accum += sv.frametime;
+                       if (sv_clmovement_inputtimeout_strict.integer)
+                               host_client->cmd.time += sv.frametime;
+
+                       // TODO: move this to SV_CheckTimeouts() ?
+                       //host_client->ping += sv.frametime;
+               }
        }
 
        // make sure the velocity is still sane (not a NaN)