From 843fe07d335df1fbe465007d960f488671d8bfa9 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 23 Aug 2003 08:23:54 +0000 Subject: [PATCH] don't call PlayerPreThink/PlayerPostThink on unspawned clients git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3408 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_phys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2