Browse Source

engine: use substring search for mpfilter

pull/2/head
Alibek Omarov 4 years ago
parent
commit
43f1137565
  1. 2
      engine/common/con_utils.c

2
engine/common/con_utils.c

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

Loading…
Cancel
Save