A_SplitShot fix: don't even attempt to A_FaceTarget (or anything beyond) if there is no target to face to begin with

This commit is contained in:
Monster Iestyn 2020-05-21 19:42:48 +01:00
parent 7722d41be6
commit c9c7327011
1 changed files with 3 additions and 0 deletions

View File

@ -9707,6 +9707,9 @@ void A_SplitShot(mobj_t *actor)
if (LUA_CallAction("A_SplitShot", actor))
return;
if (!actor->target)
return;
A_FaceTarget(actor);
{
const angle_t an = (actor->angle + ANGLE_90) >> ANGLETOFINESHIFT;