if a preferred song group is set via gamecommand, and [MusicWheel] UseSectionsWithPreferredGroup=true, then jump to the first song in the group when entering SSMusic instead of staying on the first item in the wheel.

This commit is contained in:
AJ Kelly
2010-06-29 18:51:06 -05:00
parent 033e2d1e1a
commit d785851eb6
+9 -1
View File
@@ -175,8 +175,16 @@ void MusicWheel::BeginScreen()
if(GAMESTATE->m_sPreferredSongGroup != GROUP_ALL)
{
// if we have a preferred song group set, we should go there.
// If a preferred song group is set, open the group and select the
// first song in the group. -aj
if(!GAMESTATE->IsCourseMode())
{
vector<Song*> vTemp = SONGMAN->GetSongs(GAMESTATE->m_sPreferredSongGroup);
ASSERT(vTemp.size() > 0);
GAMESTATE->m_pCurSong.Set(vTemp[0]);
};
SetOpenSection(GAMESTATE->m_sPreferredSongGroup);
SelectSongOrCourse();
}
else if( !SelectSongOrCourse() )
{