From 4f74539eab215e75ac41e6396c322d6db43a37a0 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 26 Feb 2009 07:19:43 +0000 Subject: [PATCH] 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 --- prvm_edict.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 // -- 2.39.2