From a3236aa7ef36390f7d3f25cd4c1843c8b5ab1c4a Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 19 Feb 2018 16:57:52 +0200 Subject: [PATCH] Set target for blood actor with PUFFGETSOWNER flag spawned by crusher https://forum.zdoom.org/viewtopic.php?t=59447 --- src/p_map.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/p_map.cpp b/src/p_map.cpp index 8e445862a3..7d5a79de88 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -6380,6 +6380,11 @@ void P_DoCrunch(AActor *thing, FChangePosition *cpos) mo->Translation = thing->BloodTranslation; } + if (mo->flags5 & MF5_PUFFGETSOWNER) + { + mo->target = thing; + } + if (!(cl_bloodtype <= 1)) mo->renderflags |= RF_INVISIBLE; }