]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
don't call PlayerPreThink/PlayerPostThink on unspawned clients
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 23 Aug 2003 08:23:54 +0000 (08:23 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 23 Aug 2003 08:23:54 +0000 (08:23 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3408 d7cf8633-e32d-0410-b094-e92efae38249

sv_phys.c

index 6cfd9058fa9fbf204516c70ad96a2a0a8a5b72c8..2bae3238dffca03227e9463f8de1e2eaf9a32848 100644 (file)
--- 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