- fixed: The rail attack only considered the puff's decal if it had ALWAYSPUFF set.

This commit is contained in:
Christoph Oelckers 2019-01-19 13:10:38 +01:00
parent 8f7038aa53
commit 057b746e58

View file

@ -5258,8 +5258,8 @@ void P_RailAttack(FRailParams *p)
if (puff && (trace.Line != NULL) && (trace.Line->special == Line_Horizon) && !(puff->flags3 & MF3_SKYEXPLODE))
puff->Destroy();
}
if (puff != NULL && puffDefaults->flags7 & MF7_FORCEDECAL && puff->DecalGenerator)
SpawnShootDecal(puff, trace);
if (puffDefaults != nullptr && puffDefaults->flags7 & MF7_FORCEDECAL && puffDefaults->DecalGenerator)
SpawnShootDecal(puffDefaults, trace);
else
SpawnShootDecal(source, trace);