mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't replace bots on the final race.
This commit is contained in:
parent
59cd9e6157
commit
6bdd11533c
1 changed files with 7 additions and 1 deletions
|
|
@ -528,6 +528,12 @@ void K_ReplaceBot(player_t *bot)
|
||||||
|
|
||||||
UINT8 i;
|
UINT8 i;
|
||||||
|
|
||||||
|
if (grandprixinfo.gp == true && grandprixinfo.roundnum >= grandprixinfo.cup->numlevels)
|
||||||
|
{
|
||||||
|
// Was last map, no replacement.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// init usable bot skins list
|
// init usable bot skins list
|
||||||
for (i = 0; i < MAXSKINS; i++)
|
for (i = 0; i < MAXSKINS; i++)
|
||||||
{
|
{
|
||||||
|
|
@ -582,7 +588,7 @@ void K_ReplaceBot(player_t *bot)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const UINT8 startingdifficulty = K_BotStartingDifficulty(grandprixinfo.gamespeed);
|
const UINT8 startingdifficulty = K_BotStartingDifficulty(grandprixinfo.gamespeed);
|
||||||
newDifficulty = startingdifficulty - 3 + (grandprixinfo.roundnum - 1);
|
newDifficulty = startingdifficulty - 4 + grandprixinfo.roundnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newDifficulty > MAXBOTDIFFICULTY)
|
if (newDifficulty > MAXBOTDIFFICULTY)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue