Fix for beocming a spectator while an SPB is on your trail having it continue to follow you around. Done here because it's related to spectators messing up other people's fun.

This commit is contained in:
toaster 2021-12-08 20:57:52 +00:00
parent bac683085c
commit 19ac63bd6c

View file

@ -8392,7 +8392,7 @@ void A_SPBChase(mobj_t *actor)
if (actor->extravalue1 == 1) // MODE: TARGETING
{
if (actor->tracer && actor->tracer->health)
if (actor->tracer && actor->tracer->health && !(actor->tracer->player && actor->tracer->player->spectator))
{
fixed_t defspeed = wspeed;