mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 13:21:10 +00:00
Make sure spbplace is set better during SEEKING
This commit is contained in:
parent
e82c7cb230
commit
b68a58d5b2
1 changed files with 2 additions and 2 deletions
|
@ -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?
|
// No one there?
|
||||||
if (player == NULL || !player->mo)
|
if (player == NULL || !player->mo)
|
||||||
{
|
{
|
||||||
|
@ -8531,11 +8529,13 @@ void A_SPBChase(mobj_t *actor)
|
||||||
#else
|
#else
|
||||||
actor->momx = actor->momy = actor->momz = 0;
|
actor->momx = actor->momy = actor->momz = 0;
|
||||||
#endif
|
#endif
|
||||||
|
spbplace = -1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Found someone, now get close enough to initiate the slaughter...
|
// Found someone, now get close enough to initiate the slaughter...
|
||||||
P_SetTarget(&actor->tracer, player->mo);
|
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);
|
dist = P_AproxDistance(P_AproxDistance(actor->x-actor->tracer->x, actor->y-actor->tracer->y), actor->z-actor->tracer->z);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue