From a1dbc5e5d4f3c2ac31968e6d3eac0838991147b5 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 2 Jun 2004 07:43:43 +0000 Subject: [PATCH] DifficultyMeter: fudge a Difficulty from the Trail CourseDifficulty, not from the Trail's meter --- stepmania/src/DifficultyMeter.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/stepmania/src/DifficultyMeter.cpp b/stepmania/src/DifficultyMeter.cpp index 68995fb79e..ff1a3e2158 100644 --- a/stepmania/src/DifficultyMeter.cpp +++ b/stepmania/src/DifficultyMeter.cpp @@ -124,16 +124,13 @@ void DifficultyMeter::SetFromCourse( const Course* pCourse, PlayerNumber pn ) // XXX metrics Difficulty FakeDifficulty; - if( meter <= 1 ) - FakeDifficulty = DIFFICULTY_BEGINNER; - else if( meter <= 3 ) - FakeDifficulty = DIFFICULTY_EASY; - else if( meter <= 6 ) - FakeDifficulty = DIFFICULTY_MEDIUM; - else if( meter <= 9 ) - FakeDifficulty = DIFFICULTY_HARD; - else - FakeDifficulty = DIFFICULTY_CHALLENGE; + switch( cd ) + { + case COURSE_DIFFICULTY_EASY: FakeDifficulty = DIFFICULTY_EASY; break; + case COURSE_DIFFICULTY_REGULAR: FakeDifficulty = DIFFICULTY_MEDIUM; break; + case COURSE_DIFFICULTY_DIFFICULT: FakeDifficulty = DIFFICULTY_HARD; break; + default: ASSERT(0); + } SetFromMeterAndDifficulty( meter, FakeDifficulty ); SetDifficulty( DifficultyToString(FakeDifficulty) + "Course" );