From 4994c729d3611a2a17c4dda0b275c473e99ade8e Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 14 Jan 2008 19:28:28 +0000 Subject: [PATCH] make server name/map name sorting case insensitive git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7958 d7cf8633-e32d-0410-b094-e92efae38249 --- netconn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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" ); -- 2.39.2