Set target for blood actor with PUFFGETSOWNER flag spawned by crusher

https://forum.zdoom.org/viewtopic.php?t=59447
This commit is contained in:
alexey.lysiuk 2018-02-19 16:57:52 +02:00
parent 05538f2de8
commit a3236aa7ef
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}