mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 01:02:03 +00:00
- 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:
parent
a13af5cc65
commit
3480d40484
1 changed files with 6 additions and 3 deletions
|
@ -744,9 +744,12 @@ void AActor::Die (AActor *source, AActor *inflictor, int dmgflags)
|
||||||
{
|
{
|
||||||
SetState (diestate);
|
SetState (diestate);
|
||||||
|
|
||||||
tics -= pr_killmobj() & 3;
|
if (tics > 1)
|
||||||
if (tics < 1)
|
{
|
||||||
tics = 1;
|
tics -= pr_killmobj() & 3;
|
||||||
|
if (tics < 1)
|
||||||
|
tics = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue