SORT_GRADE fixes

This commit is contained in:
Glenn Maynard
2004-03-07 06:48:10 +00:00
parent f95254c1a9
commit 6923557389
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -532,7 +532,7 @@ void MusicWheel::BuildWheelItemDatas( vector<WheelItemData> &arrayWheelItemDatas
* so don't re-sort for them. */
// /* We're using sections, so use the section name as the top-level
// * sort. */
if( so != SORT_GRADE && so != SORT_BPM )
if( so != SORT_BPM )
SortSongPointerArrayBySectionName(arraySongs, so);
// make WheelItemDatas with sections
+2 -2
View File
@@ -1438,12 +1438,12 @@ CString GetSectionNameFromSongAndSort( const Song* pSong, SongSortOrder so )
return "";
case SORT_GRADE:
{
for( int i=NUM_GRADES; i>GRADE_NO_DATA; i-- )
for( int i=GRADE_TIER_1; i<NUM_GRADES; ++i )
{
Grade g = (Grade)i;
int iCount = pSong->GetNumNotesWithGrade( g );
if( iCount > 0 )
return ssprintf( "%4s x %d", GradeToString(g).c_str(), iCount );
return ssprintf( "%4s x %d", GradeToThemedString(g).c_str(), iCount );
}
return "NO DATA";
}