Skip to content
Permalink
Browse files

sort maps by internal bsp name instead of display name (do not sort b…

…y color code) fix #670
  • Loading branch information...
illwieckz committed Mar 8, 2015
1 parent 2395859 commit 83cf04e7300645d160e6af649c35cf3fdbb5b5b2
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/gamelogic/cgame/cg_gameinfo.cpp
@@ -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 *B = ( mapInfo_t * ) b;

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

/*
@@ -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.
You can’t perform that action at this time.