From 0a24ca3fe24ad14cc7bd8ec94bff30a6b31b496c Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 26 Oct 2024 05:13:22 +0300 Subject: [PATCH] engine: client: fix svc_updateuserinfo for inactive player on GoldSrc servers --- engine/client/cl_parse.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_parse.c b/engine/client/cl_parse.c index 59311864..839eebe8 100644 --- a/engine/client/cl_parse.c +++ b/engine/client/cl_parse.c @@ -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 );