Skip to content

Commit

Permalink
sort maps by internal bsp name instead of display name (do not sort b…
Browse files Browse the repository at this point in the history
…y color code) fix #670
  • Loading branch information
illwieckz committed Mar 8, 2015
1 parent 2395859 commit 83cf04e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/gamelogic/cgame/cg_gameinfo.cpp
Expand Up @@ -144,16 +144,16 @@ static void CG_LoadArenasFromFile( char *filename )
} }


/* /*
================= ===============
CG_MapNameCompare CG_MapLoadNameCompare
================= ===============
*/ */
static int CG_MapNameCompare( const void *a, const void *b ) static int CG_MapLoadNameCompare( const void *a, const void *b )
{ {
mapInfo_t *A = ( mapInfo_t * ) a; mapInfo_t *A = ( mapInfo_t * ) a;
mapInfo_t *B = ( mapInfo_t * ) b; mapInfo_t *B = ( mapInfo_t * ) b;


return Q_stricmp( A->mapName, B->mapName ); return Q_stricmp( A->mapLoadName, B->mapLoadName );
} }


/* /*
Expand Down Expand Up @@ -199,5 +199,5 @@ void CG_LoadArenas( void )
} }
} }


qsort( rocketInfo.data.mapList, rocketInfo.data.mapCount, sizeof( mapInfo_t ), CG_MapNameCompare ); qsort( rocketInfo.data.mapList, rocketInfo.data.mapCount, sizeof( mapInfo_t ), CG_MapLoadNameCompare );
} }

0 comments on commit 83cf04e

Please sign in to comment.