From ffd8b5ed5a08e6faa9b4eb68ebcfbf8ab5bc233a Mon Sep 17 00:00:00 2001 From: Kevin Caccamo Date: Thu, 14 Jul 2022 17:26:31 -0400 Subject: [PATCH] Address Graf's comment --- src/playsim/p_map.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/playsim/p_map.cpp b/src/playsim/p_map.cpp index c4ca226355..796c0a61c7 100644 --- a/src/playsim/p_map.cpp +++ b/src/playsim/p_map.cpp @@ -5351,7 +5351,11 @@ void P_RailAttack(FRailParams *p) { hitpuff = P_SpawnPuff(source, puffclass, hitpos, hitangle, hitangle - 90, 1, actorpuffflags, hitactor); } - + // https://github.com/coelckers/gzdoom/pull/1668#pullrequestreview-1039431156 + if (!hitpuff) { + hitpuff = thepuff; + } + int dmgFlagPass = DMG_INFLICTOR_IS_PUFF; if (puffDefaults != NULL) // is this even possible? {