From b331d0c5ec48286f8b6f03435bc16cc1f938ec39 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 5 Apr 2007 08:25:54 +0000 Subject: [PATCH] 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 --- sv_phys.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.2