allow specifying section names in PreferredSongs

This commit is contained in:
Chris Danford
2008-07-02 00:10:47 +00:00
parent aca8629e5a
commit cefafb8bc4
4 changed files with 73 additions and 39 deletions
+9 -1
View File
@@ -512,8 +512,16 @@ void MusicWheel::BuildWheelItemDatas( vector<MusicWheelItemData *> &arrayWheelIt
* Grade and BPM sorts in the wrong order, and they're already correct,
* so don't re-sort for them. */
/* We're using sections, so use the section name as the top-level sort. */
if( so != SORT_TOP_GRADES && so != SORT_BPM )
switch( so )
{
case SORT_PREFERRED:
case SORT_TOP_GRADES:
case SORT_BPM:
break; // don't sort by section
default:
SongUtil::SortSongPointerArrayBySectionName(arraySongs, so);
break;
}
}
// make WheelItemDatas with sections