From 2d5f02327295577f91f90e5cd86c5f9090f14673 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 4 Oct 2009 18:35:00 +0000 Subject: [PATCH] also don't call PostThink on disconnected clients ;) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9303 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_phys.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sv_phys.c b/sv_phys.c index 6a2979ca..15355fd4 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -2731,6 +2731,10 @@ static void SV_Physics_ClientEntity_PreThink(prvm_edict_t *ent) static void SV_Physics_ClientEntity_PostThink(prvm_edict_t *ent) { + // don't do physics on disconnected clients, FrikBot relies on this + if (!host_client->spawned) + return; + // make sure the velocity is sane (not a NaN) SV_CheckVelocity(ent); -- 2.39.2