]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
make server name/map name sorting case insensitive
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 14 Jan 2008 19:28:28 +0000 (19:28 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 14 Jan 2008 19:28:28 +0000 (19:28 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7958 d7cf8633-e32d-0410-b094-e92efae38249

netconn.c

index 0e782bf6ac9213c073115b22272633e792e7899d..8d000528c68035377ee8259748d0fda90488ab1f 100755 (executable)
--- 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" );