From: havoc Date: Thu, 5 Apr 2007 08:25:54 +0000 (+0000) Subject: fix another prediction issue (physics code was being called per input frame and per... X-Git-Tag: xonotic-v0.1.0preview~3366 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b331d0c5ec48286f8b6f03435bc16cc1f938ec39;p=xonotic%2Fdarkplaces.git fix another prediction issue (physics code was being called per input frame and per server frame) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7053 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_phys.c b/sv_phys.c index c3ee35c2..0dd67604 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -2059,7 +2059,9 @@ void SV_Physics_ClientEntity(prvm_edict_t *ent) return; } - SV_ClientThink(); + // don't run physics here if running asynchronously + if (host_client->clmovement_skipphysicsframes <= 0) + SV_ClientThink(); // make sure the velocity is sane (not a NaN) SV_CheckVelocity(ent);