From be3fb45f33f8210e828f57a1f92ee63d9b9ba7b3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 25 Apr 2004 05:52:21 +0000 Subject: [PATCH] don't make challenge steps edits in difficult courses --- stepmania/src/Course.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index 501ed96ee8..d5957352ba 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -717,7 +717,7 @@ void Course::GetCourseInfo( StepsType nt, vector &ci, CourseDiffic * the one we found above. */ Difficulty dc = pNotes->GetDifficulty(); Difficulty new_dc = Difficulty( dc + entry_difficulty ); - if( new_dc < NUM_DIFFICULTIES ) + if( new_dc <= DIFFICULTY_CHALLENGE ) { Steps* pNewNotes = pSong->GetStepsByDifficulty( nt, new_dc ); if( pNewNotes ) @@ -834,7 +834,7 @@ Difficulty Course::GetDifficulty( const Info &stage ) const { Difficulty dc = m_entries[stage.CourseIndex].difficulty; Difficulty new_dc = Difficulty( dc + stage.Difficulty ); - return (new_dc < NUM_DIFFICULTIES) ? new_dc : dc; + return (new_dc <= DIFFICULTY_CHALLENGE) ? new_dc : dc; } void Course::GetMeterRange( int stage, int& iMeterLowOut, int& iMeterHighOut, CourseDifficulty cd ) const