- fixed: The rail attack did not check the BLOODLESSIMPACT flag.

SVN r3568 (trunk)
This commit is contained in:
Christoph Oelckers 2012-04-15 07:59:50 +00:00
parent c03be3b43b
commit 93694dadc1
1 changed files with 5 additions and 2 deletions

View File

@ -3945,9 +3945,12 @@ void P_RailAttack (AActor *source, int damage, int offset, int color1, int color
{
spawnpuff = (puffclass != NULL && puffDefaults->flags3 & MF3_ALWAYSPUFF);
puffflags |= PF_HITTHINGBLEED; // [XA] Allow for puffs to jump to XDeath state.
if(!(puffDefaults->flags3 & MF3_BLOODLESSIMPACT))
{
P_SpawnBlood (x, y, z, (source->angle + angleoffset) - ANG180, damage, RailHits[i].HitActor);
P_TraceBleed (damage, x, y, z, RailHits[i].HitActor, source->angle, pitch);
}
}
if (spawnpuff)
P_SpawnPuff (source, puffclass, x, y, z, (source->angle + angleoffset) - ANG90, 1, puffflags);
if (puffDefaults && puffDefaults->PoisonDamage > 0 && puffDefaults->PoisonDuration != INT_MIN)