From: divverent Date: Sun, 4 Oct 2009 18:35:00 +0000 (+0000) Subject: also don't call PostThink on disconnected clients ;) X-Git-Tag: xonotic-v0.1.0preview~1331 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2d5f02327295577f91f90e5cd86c5f9090f14673;p=xonotic%2Fdarkplaces.git also don't call PostThink on disconnected clients ;) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9303 d7cf8633-e32d-0410-b094-e92efae38249 --- 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);