separate course popularities for each PlayMode

don't calculate autogen courses in best list if they're not shown
This commit is contained in:
Chris Danford
2005-04-07 08:46:40 +00:00
parent 370daa9b68
commit dd84b4ffd6
7 changed files with 61 additions and 44 deletions
+2 -1
View File
@@ -1709,7 +1709,8 @@ void ScreenSelectMusic::AfterMusicChange()
}
}
const vector<Course*> best = SONGMAN->GetBestCourses( PROFILE_SLOT_MACHINE );
CourseType ct = PlayModeToCourseType( GAMESTATE->m_PlayMode );
const vector<Course*> best = SONGMAN->GetBestCourses( ct, PROFILE_SLOT_MACHINE );
const int index = FindCourseIndexOfSameMode( best.begin(), best.end(), pCourse );
if( index != -1 )
m_MachineRank.SetText( AddNumberSuffix( index+1 ) );