mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-22 09:11:21 +00:00
Merge branch 'addplayer' of https://git.do.srb2.org/STJr/SRB2.git into addplayer-2021-7-15
This commit is contained in:
commit
bac4116130
2 changed files with 1 additions and 4 deletions
|
@ -25,8 +25,6 @@ void B_UpdateBotleader(player_t *player)
|
|||
fixed_t neardist = INT32_MAX;
|
||||
player_t *nearplayer = NULL;
|
||||
//Find new botleader
|
||||
//if (!player->botleader)
|
||||
//{
|
||||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
{
|
||||
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)
|
||||
player->botleader = nearplayer;
|
||||
//}
|
||||
}
|
||||
|
||||
static inline void B_ResetAI(botmem_t *mem)
|
||||
|
|
|
@ -11656,7 +11656,7 @@ void P_PlayerThink(player_t *player)
|
|||
INT32 i, total = 0, exiting = 0;
|
||||
|
||||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
{
|
||||
{
|
||||
if (!playeringame[i] || players[i].spectator || players[i].bot == BOT_2PAI || players[i].bot == BOT_2PHUMAN)
|
||||
continue;
|
||||
if (players[i].quittime > 30 * TICRATE)
|
||||
|
|
Loading…
Reference in a new issue