]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
count entities removed by SV_OnEntityPreSpawnFunction as inhibited, not as died
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 26 Feb 2009 07:19:43 +0000 (07:19 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 26 Feb 2009 07:19:43 +0000 (07:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8764 d7cf8633-e32d-0410-b094-e92efae38249

prvm_edict.c

index a751a15ecfc7e5b50c57244ffd49822b5adecba9..f0ae041d9344a293125514fbc47ea25de2144168 100644 (file)
@@ -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
 //