From fdcf267fe3e17af87de9460c317f9983ae6715ee Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 20 Dec 2024 03:05:14 +0300 Subject: [PATCH] engine: client: fix usermessage being removed because of case-sensitivity (message names are case-insensitive when transferred from server to client) --- engine/client/cl_game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/cl_game.c b/engine/client/cl_game.c index 9d2f14f8da..377859ac5b 100644 --- a/engine/client/cl_game.c +++ b/engine/client/cl_game.c @@ -976,7 +976,7 @@ static void CL_ClearUserMessage( char *pszName, int svc_num ) int i; for( i = 0; i < MAX_USER_MESSAGES && clgame.msg[i].name[0]; i++ ) - if( ( clgame.msg[i].number == svc_num ) && Q_strcmp( clgame.msg[i].name, pszName ) ) + if( ( clgame.msg[i].number == svc_num ) && Q_stricmp( clgame.msg[i].name, pszName ) ) clgame.msg[i].number = 0; }