mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 09:56:22 +01:00
engine: client: fix svc_updateuserinfo for inactive player on GoldSrc servers
This commit is contained in:
parent
8c93a0d247
commit
0a24ca3fe2
@ -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…
Reference in New Issue
Block a user