- added DONTCORPSE submission.

SVN r3216 (trunk)
This commit is contained in:
Christoph Oelckers 2011-05-26 23:27:58 +00:00
commit 6053627c5c
4 changed files with 8 additions and 1 deletions

View file

@ -5485,6 +5485,9 @@ int AActor::GibHealth()
void AActor::Crash()
{
// [RC] Weird that this forces the Crash state regardless of flag.
if(!(flags6 & MF6_DONTCORPSE))
{
if (((flags & MF_CORPSE) || (flags6 & MF6_KILLED)) &&
!(flags3 & MF3_CRASHED) &&
!(flags & MF_ICECORPSE))
@ -5511,6 +5514,7 @@ void AActor::Crash()
// so this code doesn't have to be executed repeatedly.
flags3 |= MF3_CRASHED;
}
}
}
void AActor::SetIdle()