use FOREACH_ShownCourseDifficulty

This commit is contained in:
Glenn Maynard
2004-05-20 22:27:45 +00:00
parent bcf6792d47
commit 7c1600a1c1
4 changed files with 12 additions and 13 deletions
+1 -2
View File
@@ -112,9 +112,8 @@ void ScreenOptionsMaster::SetStep( OptionRowData &row, OptionRowHandler &hand )
Course* pCourse = GAMESTATE->m_pCurCourse;
StepsType st = GAMESTATE->GetCurrentStyleDef()->m_StepsType;
for( int d=0; d<NUM_COURSE_DIFFICULTIES; d++ )
FOREACH_ShownCourseDifficulty(cd)
{
CourseDifficulty cd = (CourseDifficulty)d;
if( !pCourse->HasCourseDifficulty(st,cd) )
continue; // skip