mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Reduce all bot difficulty when retrying
Especially reasonable now that you have a penalty for retrying.
This commit is contained in:
parent
600063f46b
commit
569b9a7dee
1 changed files with 13 additions and 1 deletions
12
src/g_game.c
12
src/g_game.c
|
|
@ -2137,10 +2137,22 @@ void G_Ticker(boolean run)
|
|||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
{
|
||||
if (playeringame[i])
|
||||
{
|
||||
if (players[i].bot == true)
|
||||
{
|
||||
players[i].botvars.difficulty--;
|
||||
|
||||
if (players[i].botvars.difficulty < 1)
|
||||
{
|
||||
players[i].botvars.difficulty = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
K_PlayerLoseLife(&players[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
D_MapChange(gamemap, gametype, (cv_kartencore.value == 1), false, 1, false, false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue