- Fixed: Corpse queue accounting went awry once things started being kicked out of it.

SVN r3934 (trunk)
This commit is contained in:
Randy Heit 2012-11-03 02:21:55 +00:00
parent 0f0dcc08a2
commit ecf700b47b

View file

@ -350,7 +350,6 @@ CUSTOM_CVAR(Int, sv_corpsequeuesize, 64, CVAR_ARCHIVE|CVAR_SERVERINFO)
while (first != NULL && first->Count > (DWORD)self)
{
DCorpsePointer *next = iterator.Next ();
next->Count = first->Count;
first->Destroy ();
first = next;
}
@ -373,9 +372,8 @@ DCorpsePointer::DCorpsePointer (AActor *ptr)
if (first->Count >= (DWORD)sv_corpsequeuesize)
{
DCorpsePointer *next = iterator.Next ();
next->Count = first->Count;
first->Destroy ();
return;
first = next;
}
}
++first->Count;