From b68a58d5b27d943d579007212e2f8a44f6cd6a02 Mon Sep 17 00:00:00 2001 From: TehRealSalt Date: Sun, 25 Nov 2018 20:24:47 -0500 Subject: [PATCH] Make sure spbplace is set better during SEEKING --- src/p_enemy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_enemy.c b/src/p_enemy.c index e77e8282..dd68a02c 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -8514,8 +8514,6 @@ void A_SPBChase(mobj_t *actor) } } - spbplace = bestrank; // While seeking, it's trying to go for first place. - // No one there? if (player == NULL || !player->mo) { @@ -8531,11 +8529,13 @@ void A_SPBChase(mobj_t *actor) #else actor->momx = actor->momy = actor->momz = 0; #endif + spbplace = -1; return; } // Found someone, now get close enough to initiate the slaughter... P_SetTarget(&actor->tracer, player->mo); + spbplace = bestrank; dist = P_AproxDistance(P_AproxDistance(actor->x-actor->tracer->x, actor->y-actor->tracer->y), actor->z-actor->tracer->z);