mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Give bots servernode, D_NumPlayers no longer counts bots
This commit is contained in:
parent
2dfa20f758
commit
766c6da005
1 changed files with 9 additions and 1 deletions
|
|
@ -3647,6 +3647,8 @@ static void Got_AddBot(UINT8 **p, INT32 playernum)
|
|||
if (newplayernum+1 > doomcom->numslots)
|
||||
doomcom->numslots = (INT16)(newplayernum+1);
|
||||
|
||||
playernode[newplayernum] = servernode;
|
||||
|
||||
players[newplayernum].splitscreenindex = 0;
|
||||
players[newplayernum].bot = true;
|
||||
players[newplayernum].botvars.difficulty = difficulty;
|
||||
|
|
@ -5778,9 +5780,15 @@ FILESTAMP
|
|||
INT32 D_NumPlayers(void)
|
||||
{
|
||||
INT32 num = 0, ix;
|
||||
|
||||
for (ix = 0; ix < MAXPLAYERS; ix++)
|
||||
if (playeringame[ix])
|
||||
{
|
||||
if (playeringame[ix] && !players[ix].bot)
|
||||
{
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
return num;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue