engine: use substring search for mpfilter

This commit is contained in:
Alibek Omarov 2021-06-07 02:23:44 +03:00
parent ad4062969b
commit 43f1137565
1 changed files with 1 additions and 1 deletions

View File

@ -876,7 +876,7 @@ qboolean Cmd_CheckMapsList_R( qboolean fRefresh, qboolean onlyingamedir )
if( Q_stricmp( COM_FileExtension( t->filenames[i] ), "bsp" ))
continue;
if( use_filter && !Q_strnicmp( t->filenames[i], mpfilter, size))
if( use_filter && !Q_stristr( t->filenames[i], mpfilter ))
continue;
f = FS_Open( t->filenames[i], "rb", onlyingamedir );