2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-12-22 17:01:14 +01:00

engine: client: fix usermessage being removed because of case-sensitivity (message names are case-insensitive when transferred from server to client)

This commit is contained in:
Alibek Omarov 2024-12-20 03:05:14 +03:00
parent 7f2ebd1b5e
commit fdcf267fe3

View File

@ -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;
}