Foes in Match Race

This commit is contained in:
Antonio Martinez 2025-08-03 21:18:40 -04:00 committed by AJ Martinez
parent 73438dd629
commit 6a2568e7a7
3 changed files with 6 additions and 2 deletions

View file

@ -408,6 +408,8 @@ void K_UpdateMatchRaceBots(void)
clear_bots(wantedbots);
}
K_AssignFoes();
// We should have enough bots now :)
#ifdef HAVE_DISCORDRPC

View file

@ -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++)

View file

@ -200,6 +200,8 @@ boolean K_CanChangeRules(boolean allowdemos);
boolean K_BotDefaultSpectator(void);
void K_AssignFoes(void);
#ifdef __cplusplus
} // extern "C"