mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-28 06:42:09 +00:00
- Fixed: Corpse queue accounting went awry once things started being kicked out of it.
SVN r3934 (trunk)
This commit is contained in:
parent
0f0dcc08a2
commit
ecf700b47b
1 changed files with 1 additions and 3 deletions
|
@ -350,7 +350,6 @@ CUSTOM_CVAR(Int, sv_corpsequeuesize, 64, CVAR_ARCHIVE|CVAR_SERVERINFO)
|
||||||
while (first != NULL && first->Count > (DWORD)self)
|
while (first != NULL && first->Count > (DWORD)self)
|
||||||
{
|
{
|
||||||
DCorpsePointer *next = iterator.Next ();
|
DCorpsePointer *next = iterator.Next ();
|
||||||
next->Count = first->Count;
|
|
||||||
first->Destroy ();
|
first->Destroy ();
|
||||||
first = next;
|
first = next;
|
||||||
}
|
}
|
||||||
|
@ -373,9 +372,8 @@ DCorpsePointer::DCorpsePointer (AActor *ptr)
|
||||||
if (first->Count >= (DWORD)sv_corpsequeuesize)
|
if (first->Count >= (DWORD)sv_corpsequeuesize)
|
||||||
{
|
{
|
||||||
DCorpsePointer *next = iterator.Next ();
|
DCorpsePointer *next = iterator.Next ();
|
||||||
next->Count = first->Count;
|
|
||||||
first->Destroy ();
|
first->Destroy ();
|
||||||
return;
|
first = next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
++first->Count;
|
++first->Count;
|
||||||
|
|
Loading…
Reference in a new issue