From 43f113756553cfcb3f9ed35c7be129937db32c5c Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 7 Jun 2021 02:23:44 +0300 Subject: [PATCH] engine: use substring search for mpfilter --- engine/common/con_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/common/con_utils.c b/engine/common/con_utils.c index e09fae3c..c90d10b1 100644 --- a/engine/common/con_utils.c +++ b/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" )) 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 );