mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
K_BotRubberbandDistance: Don't sniff spectators
This commit is contained in:
parent
df5c866573
commit
dcd4f37759
1 changed files with 21 additions and 14 deletions
|
|
@ -540,21 +540,28 @@ static UINT32 K_BotRubberbandDistance(const player_t *player)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (playeringame[i] && players[i].bot)
|
if (!playeringame[i] || players[i].spectator)
|
||||||
{
|
{
|
||||||
// First check difficulty levels, then score, then settle it with port priority!
|
continue;
|
||||||
if (player->botvars.difficulty < players[i].botvars.difficulty)
|
}
|
||||||
{
|
|
||||||
pos += 3;
|
if (!players[i].bot)
|
||||||
}
|
{
|
||||||
else if (player->score < players[i].score)
|
continue;
|
||||||
{
|
}
|
||||||
pos += 2;
|
|
||||||
}
|
// First check difficulty levels, then score, then settle it with port priority!
|
||||||
else if (i < portpriority)
|
if (player->botvars.difficulty < players[i].botvars.difficulty)
|
||||||
{
|
{
|
||||||
pos += 1;
|
pos += 3;
|
||||||
}
|
}
|
||||||
|
else if (player->score < players[i].score)
|
||||||
|
{
|
||||||
|
pos += 2;
|
||||||
|
}
|
||||||
|
else if (i < portpriority)
|
||||||
|
{
|
||||||
|
pos += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue