Merge branch 'addplayer' of https://git.do.srb2.org/STJr/SRB2.git into addplayer-2021-7-15

This commit is contained in:
CobaltBW 2021-07-15 15:36:44 -07:00
commit bac4116130
2 changed files with 1 additions and 4 deletions

View file

@ -25,8 +25,6 @@ void B_UpdateBotleader(player_t *player)
fixed_t neardist = INT32_MAX; fixed_t neardist = INT32_MAX;
player_t *nearplayer = NULL; player_t *nearplayer = NULL;
//Find new botleader //Find new botleader
//if (!player->botleader)
//{
for (i = 0; i < MAXPLAYERS; i++) for (i = 0; i < MAXPLAYERS; i++)
{ {
if (players[i].bot || players[i].playerstate != PST_LIVE || players[i].spectator || !players[i].mo) if (players[i].bot || players[i].playerstate != PST_LIVE || players[i].spectator || !players[i].mo)
@ -46,7 +44,6 @@ void B_UpdateBotleader(player_t *player)
} }
//Set botleader to best candidate (or null if none available) //Set botleader to best candidate (or null if none available)
player->botleader = nearplayer; player->botleader = nearplayer;
//}
} }
static inline void B_ResetAI(botmem_t *mem) static inline void B_ResetAI(botmem_t *mem)