mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 22:51:39 +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,
|
int gibhealth = -abs(GetClass()->Meta.GetMetaInt (AMETA_GibHealth,
|
||||||
gameinfo.gametype == GAME_Doom ? -GetDefault()->health : -GetDefault()->health/2));
|
gameinfo.gametype == GAME_Doom ? -GetDefault()->health : -GetDefault()->health/2));
|
||||||
|
|
||||||
DamageType =NAME_None; // Don't pass on a damage type this actor cannot handle
|
// Don't pass on a damage type this actor cannot handle
|
||||||
// (most importantly prevent barrels from passing on ice damage)
|
// (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))
|
if ((health<gibhealth || flags4 & MF4_EXTREMEDEATH) && !(flags4 & MF4_NOEXTREMEDEATH))
|
||||||
{ // Extreme death
|
{ // Extreme death
|
||||||
diestate = FindState (2, NAME_Death, NAME_Extreme);
|
diestate = FindState (2, NAME_Death, NAME_Extreme);
|
||||||
|
|
Loading…
Reference in a new issue