mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +00:00
Forgot to save the last change before committing.
SVN r369 (trunk)
This commit is contained in:
parent
063c85b157
commit
0cf2ae0127
1 changed files with 5 additions and 2 deletions
|
@ -634,8 +634,11 @@ void AActor::Die (AActor *source, AActor *inflictor)
|
|||
int gibhealth = -abs(GetClass()->Meta.GetMetaInt (AMETA_GibHealth,
|
||||
gameinfo.gametype == GAME_Doom ? -GetDefault()->health : -GetDefault()->health/2));
|
||||
|
||||
DamageType =NAME_None; // Don't pass on a damage type this actor cannot handle
|
||||
// (most importantly prevent barrels from passing on ice damage)
|
||||
// Don't pass on a damage type this actor cannot handle
|
||||
// (most importantly prevent barrels from passing on ice damage)
|
||||
// Massacre must be preserved though.
|
||||
if (DamageType != NAME_Massacre) DamageType =NAME_None;
|
||||
|
||||
if ((health<gibhealth || flags4 & MF4_EXTREMEDEATH) && !(flags4 & MF4_NOEXTREMEDEATH))
|
||||
{ // Extreme death
|
||||
diestate = FindState (2, NAME_Death, NAME_Extreme);
|
||||
|
|
Loading…
Reference in a new issue