#473 maps are filtered by quicksearch

This commit is contained in:
Alfred Eriksson 2008-09-29 14:11:40 +00:00
parent eac9658b73
commit b48608dc2a
2 changed files with 8 additions and 0 deletions

View file

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

View file

@ -58,6 +58,7 @@ enum
BROWSEQUICK_SERVERNAME=1,
BROWSEQUICK_PLAYERNAME=2,
BROWSEQUICK_MAPNAME=4,
BROWSETYPE_INTERNET = 0,
BROWSETYPE_LAN = 1,