From ecf700b47b1236e1bef3c68990b817b5910f32ca Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 3 Nov 2012 02:21:55 +0000 Subject: [PATCH] - Fixed: Corpse queue accounting went awry once things started being kicked out of it. SVN r3934 (trunk) --- src/g_shared/a_action.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/g_shared/a_action.cpp b/src/g_shared/a_action.cpp index c283b5720..1149bc2c3 100644 --- a/src/g_shared/a_action.cpp +++ b/src/g_shared/a_action.cpp @@ -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;