mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Foes in Match Race
This commit is contained in:
parent
73438dd629
commit
6a2568e7a7
3 changed files with 6 additions and 2 deletions
|
|
@ -408,6 +408,8 @@ void K_UpdateMatchRaceBots(void)
|
|||
clear_bots(wantedbots);
|
||||
}
|
||||
|
||||
K_AssignFoes();
|
||||
|
||||
// We should have enough bots now :)
|
||||
|
||||
#ifdef HAVE_DISCORDRPC
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ static boolean CompareRivals(player_t *a, player_t *b)
|
|||
|
||||
if (K_RivalScore(a) != K_RivalScore(b))
|
||||
{
|
||||
// Push bad position to the back.
|
||||
// Rival Score is HIGH when bots are strong. Sort them first!
|
||||
return (K_RivalScore(a) > K_RivalScore(b));
|
||||
}
|
||||
|
||||
|
|
@ -167,7 +167,7 @@ static boolean CompareRivals(player_t *a, player_t *b)
|
|||
return (P_Random(PR_BOTS) & 1);
|
||||
}
|
||||
|
||||
static void K_AssignFoes(void)
|
||||
void K_AssignFoes(void)
|
||||
{
|
||||
std::vector<player_t *> bots;
|
||||
for (UINT8 i = 0; i < MAXPLAYERS; i++)
|
||||
|
|
|
|||
|
|
@ -200,6 +200,8 @@ boolean K_CanChangeRules(boolean allowdemos);
|
|||
|
||||
boolean K_BotDefaultSpectator(void);
|
||||
|
||||
void K_AssignFoes(void);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue