From: divverent Date: Mon, 14 Jan 2008 19:28:28 +0000 (+0000) Subject: make server name/map name sorting case insensitive X-Git-Tag: xonotic-v0.1.0preview~2549 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4994c729d3611a2a17c4dda0b275c473e99ade8e;p=xonotic%2Fdarkplaces.git make server name/map name sorting case insensitive git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7958 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/netconn.c b/netconn.c index 0e782bf6..8d000528 100755 --- a/netconn.c +++ b/netconn.c @@ -197,16 +197,16 @@ static qboolean _ServerList_Entry_Compare( serverlist_entry_t *A, serverlist_ent result = strcmp( B->info.cname, A->info.cname ); break; case SLIF_GAME: - result = strcmp( B->info.game, A->info.game ); + result = strcasecmp( B->info.game, A->info.game ); break; case SLIF_MAP: - result = strcmp( B->info.map, A->info.map ); + result = strcasecmp( B->info.map, A->info.map ); break; case SLIF_MOD: - result = strcmp( B->info.mod, A->info.mod ); + result = strcasecmp( B->info.mod, A->info.mod ); break; case SLIF_NAME: - result = strcmp( B->info.name, A->info.name ); + result = strcasecmp( B->info.name, A->info.name ); break; default: Con_DPrint( "_ServerList_Entry_Compare: Bad serverlist_sortbyfield!\n" );