- fixed: AActor::Die may only randomize the death state's duration if it is positive. Otherwise -1 (infinite) gets clobbered.

This commit is contained in:
Christoph Oelckers 2013-07-30 16:52:36 +02:00
parent a13af5cc65
commit 3480d40484

View file

@ -744,10 +744,13 @@ void AActor::Die (AActor *source, AActor *inflictor, int dmgflags)
{
SetState (diestate);
if (tics > 1)
{
tics -= pr_killmobj() & 3;
if (tics < 1)
tics = 1;
}
}
else
{
Destroy();