From 057b746e585191e246253774a7099aa55857aa64 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 19 Jan 2019 13:10:38 +0100 Subject: [PATCH] - fixed: The rail attack only considered the puff's decal if it had ALWAYSPUFF set. --- src/p_map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_map.cpp b/src/p_map.cpp index 0b75a44115..8801b1791f 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -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);