From: divverent Date: Thu, 26 Feb 2009 07:19:43 +0000 (+0000) Subject: count entities removed by SV_OnEntityPreSpawnFunction as inhibited, not as died X-Git-Tag: xonotic-v0.1.0preview~1832 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4f74539eab215e75ac41e6396c322d6db43a37a0;p=xonotic%2Fdarkplaces.git count entities removed by SV_OnEntityPreSpawnFunction as inhibited, not as died git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8764 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_edict.c b/prvm_edict.c index a751a15e..f0ae041d 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -1330,6 +1330,12 @@ void PRVM_ED_LoadFromFile (const char *data) PRVM_ExecuteProgram (prog->funcoffsets.SV_OnEntityPreSpawnFunction, "QC function SV_OnEntityPreSpawnFunction is missing"); } + if(ent->priv.required->free) + { + inhibited++; + continue; + } + // // immediately call spawn function, but only if there is a self global and a classname //