put tutorial songs first when meter is tied

This commit is contained in:
Glenn Maynard
2005-03-12 07:24:47 +00:00
parent 9c682d30ff
commit 93a1284731
+4
View File
@@ -335,6 +335,10 @@ void SongUtil::SortSongPointerArrayByMeter( vector<Song*> &arraySongPointers, Di
const Steps* pSteps = arraySongPointers[i]->GetClosestNotes( GAMESTATE->GetCurrentStyle()->m_StepsType, dc );
CString &s = song_sort_val[arraySongPointers[i]];
s = ssprintf("%03d", pSteps ? pSteps->GetMeter() : 0);
/* Hack: always put tutorial songs first. */
s += ssprintf( "%c", arraySongPointers[i]->IsTutorial()? '0':'1' );
if( PREFSMAN->m_bSubSortByNumSteps )
s += ssprintf("%06.0f",pSteps ? pSteps->GetRadarValues()[RADAR_NUM_TAPS_AND_HOLDS] : 0);
}