mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 05:21:02 +00:00
Set target for blood actor with PUFFGETSOWNER flag spawned by crusher
https://forum.zdoom.org/viewtopic.php?t=59447
This commit is contained in:
parent
05538f2de8
commit
a3236aa7ef
1 changed files with 5 additions and 0 deletions
|
@ -6380,6 +6380,11 @@ void P_DoCrunch(AActor *thing, FChangePosition *cpos)
|
||||||
mo->Translation = thing->BloodTranslation;
|
mo->Translation = thing->BloodTranslation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mo->flags5 & MF5_PUFFGETSOWNER)
|
||||||
|
{
|
||||||
|
mo->target = thing;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(cl_bloodtype <= 1)) mo->renderflags |= RF_INVISIBLE;
|
if (!(cl_bloodtype <= 1)) mo->renderflags |= RF_INVISIBLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue