X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=sv_phys.c;h=b8c7f280098a66539aee5a8224de0c61db85e2d3;hb=refs%2Fheads%2Fbones_was_here%2Fnet_s14;hp=a72a7ca6acf5b8a0142c5df48bc506834fb4635c;hpb=8d2492ac4364e1a51e7f84c6ea1c34429f060939;p=xonotic%2Fdarkplaces.git diff --git a/sv_phys.c b/sv_phys.c index a72a7ca6..b8c7f280 100644 --- 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)