]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix another prediction issue (physics code was being called per input frame and per...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 5 Apr 2007 08:25:54 +0000 (08:25 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 5 Apr 2007 08:25:54 +0000 (08:25 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7053 d7cf8633-e32d-0410-b094-e92efae38249

sv_phys.c

index c3ee35c2204da4be71377c9c198dedefabbc730a..0dd67604e60bad370824eed14d044ab9fcdf5cf5 100644 (file)
--- 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);