mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-04-19 08:41:25 +00:00
Make absolute sure spbplace is set in the right places
This commit is contained in:
parent
d467399480
commit
7dcc55951b
1 changed files with 7 additions and 2 deletions
|
@ -8469,7 +8469,11 @@ void A_SPBChase(mobj_t *actor)
|
|||
else if (actor->extravalue1 == 2) // MODE: WAIT...
|
||||
{
|
||||
actor->momx = actor->momy = actor->momz = 0; // Stoooop
|
||||
spbplace = -1;
|
||||
|
||||
if (actor->lastlook == -1)
|
||||
spbplace = -1;
|
||||
else
|
||||
spbplace = players[actor->lastlook].kartstuff[k_position];
|
||||
|
||||
if (actor->extravalue2-- <= 0)
|
||||
{
|
||||
|
@ -8487,7 +8491,6 @@ void A_SPBChase(mobj_t *actor)
|
|||
else // MODE: SEEKING
|
||||
{
|
||||
actor->lastlook = -1; // Just make sure this is reset
|
||||
spbplace = -1;
|
||||
|
||||
// Find the player with the best rank
|
||||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
|
@ -8511,6 +8514,8 @@ 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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue