engine: client: fix svc_updateuserinfo for inactive player on GoldSrc servers
This commit is contained in:
parent
8c93a0d247
commit
0a24ca3fe2
1 changed files with 8 additions and 2 deletions
|
@ -1506,9 +1506,15 @@ void CL_UpdateUserinfo( sizebuf_t *msg, connprotocol_t proto )
|
|||
if( proto != PROTO_LEGACY )
|
||||
MSG_ReadBytes( msg, player->hashedcdkey, sizeof( player->hashedcdkey ));
|
||||
|
||||
if( slot == cl.playernum ) gameui.playerinfo = *player;
|
||||
if( proto == PROTO_GOLDSRC && ( !COM_CheckStringEmpty( player->userinfo ) || !COM_CheckStringEmpty( player->name )))
|
||||
active = false;
|
||||
|
||||
if( active && slot == cl.playernum )
|
||||
gameui.playerinfo = *player;
|
||||
}
|
||||
else
|
||||
|
||||
|
||||
if( !active )
|
||||
{
|
||||
COM_ClearCustomizationList( &player->customdata, true );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue