mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-05 22:42:54 +00:00
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:
parent
b232530695
commit
55dd8739ab
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue