mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
#473 maps are filtered by quicksearch
This commit is contained in:
parent
eac9658b73
commit
b48608dc2a
|
@ -192,6 +192,13 @@ static void client_serverbrowse_filter()
|
|||
}
|
||||
}
|
||||
|
||||
/* match against map */
|
||||
if(str_find_nocase(serverlist[i]->info.map, config.b_filter_string))
|
||||
{
|
||||
matchfound = 1;
|
||||
serverlist[i]->info.quicksearch_hit |= BROWSEQUICK_MAPNAME;
|
||||
}
|
||||
|
||||
if(!matchfound)
|
||||
filtered = 1;
|
||||
}
|
||||
|
|
|
@ -58,6 +58,7 @@ enum
|
|||
|
||||
BROWSEQUICK_SERVERNAME=1,
|
||||
BROWSEQUICK_PLAYERNAME=2,
|
||||
BROWSEQUICK_MAPNAME=4,
|
||||
|
||||
BROWSETYPE_INTERNET = 0,
|
||||
BROWSETYPE_LAN = 1,
|
||||
|
|
Loading…
Reference in a new issue