Send bot status in servercfg

This commit is contained in:
James R 2020-04-01 20:10:50 -07:00
parent e8ca96ceb4
commit 0ee1628b51
2 changed files with 5 additions and 0 deletions

View file

@ -1555,6 +1555,8 @@ static boolean SV_SendServerConfig(INT32 node)
netbuffer->u.servercfg.playerskins[i] = (UINT8)players[i].skin;
netbuffer->u.servercfg.playercolor[i] = (UINT8)players[i].skincolor;
netbuffer->u.servercfg.playerisbot[i] = players[i].bot;
}
memcpy(netbuffer->u.servercfg.server_context, server_context, 8);
@ -4289,6 +4291,7 @@ static void HandlePacketFromAwayNode(SINT8 node)
playeringame[j] = true;
SetPlayerSkinByNum(j, (INT32)netbuffer->u.servercfg.playerskins[j]);
players[j].skincolor = netbuffer->u.servercfg.playercolor[j];
players[j].bot = netbuffer->u.servercfg.playerisbot[j];
}
scp = netbuffer->u.servercfg.varlengthinputs;

View file

@ -323,6 +323,8 @@ typedef struct
UINT8 playerskins[MAXPLAYERS];
UINT8 playercolor[MAXPLAYERS];
UINT8 playerisbot[MAXPLAYERS];
UINT8 gametype;
UINT8 modifiedgame;
SINT8 adminplayers[MAXPLAYERS]; // Needs to be signed