mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-20 12:31:14 +00:00
Merge branch 'fix-rrid-wipe' into 'master'
Fix players RRID getting wiped on join Closes #1075 See merge request KartKrew/Kart!1952
This commit is contained in:
commit
51b2bba45e
1 changed files with 3 additions and 1 deletions
|
|
@ -3464,6 +3464,7 @@ static void Got_AddPlayer(const UINT8 **p, INT32 playernum)
|
|||
UINT8 splitscreenplayer = 0;
|
||||
UINT8 i;
|
||||
player_t *newplayer;
|
||||
uint8_t public_key[PUBKEYLENGTH];
|
||||
|
||||
if (playernum != serverplayer && !IsPlayerAdmin(playernum))
|
||||
{
|
||||
|
|
@ -3487,13 +3488,14 @@ static void Got_AddPlayer(const UINT8 **p, INT32 playernum)
|
|||
newplayer = &players[newplayernum];
|
||||
|
||||
READSTRINGN(*p, player_names[newplayernum], MAXPLAYERNAME);
|
||||
READMEM(*p, players[newplayernum].public_key, PUBKEYLENGTH);
|
||||
READMEM(*p, public_key, PUBKEYLENGTH);
|
||||
READMEM(*p, clientpowerlevels[newplayernum], sizeof(((serverplayer_t *)0)->powerlevels));
|
||||
|
||||
console = READUINT8(*p);
|
||||
splitscreenplayer = READUINT8(*p);
|
||||
|
||||
G_AddPlayer(newplayernum, console);
|
||||
memcpy(players[newplayernum].public_key, public_key, PUBKEYLENGTH);
|
||||
|
||||
for (i = 0; i < MAXAVAILABILITY; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue