From: havoc Date: Sat, 23 Aug 2003 08:23:54 +0000 (+0000) Subject: don't call PlayerPreThink/PlayerPostThink on unspawned clients X-Git-Tag: xonotic-v0.1.0preview~6423 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=843fe07d335df1fbe465007d960f488671d8bfa9;p=xonotic%2Fdarkplaces.git don't call PlayerPreThink/PlayerPostThink on unspawned clients git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3408 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_phys.c b/sv_phys.c index 6cfd9058..2bae3238 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -1316,7 +1316,7 @@ void SV_Physics (void) if (i > 0 && i <= MAX_SCOREBOARD) { - if (!svs.connectedclients[i-1]) + if (!svs.connectedclients[i-1] || !svs.connectedclients[i-1]->spawned) continue; // connected slot // call standard client pre-think