mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Send bot status in servercfg
This commit is contained in:
parent
e8ca96ceb4
commit
0ee1628b51
2 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue