From c57f5e27a4d14d6c33806fd66c98352175317d2c Mon Sep 17 00:00:00 2001 From: Chris Gomez Date: Wed, 5 Feb 2003 23:40:52 +0000 Subject: [PATCH] Mark meter > 10 as meter = 10 for maniac/challenge steps --- stepmania/src/Notes.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/stepmania/src/Notes.cpp b/stepmania/src/Notes.cpp index 856e00429a..1131e5f3c5 100644 --- a/stepmania/src/Notes.cpp +++ b/stepmania/src/Notes.cpp @@ -131,9 +131,15 @@ void Notes::TidyUpData() else if( GetMeter() <= 6 ) SetDifficulty(DIFFICULTY_MEDIUM); else SetDifficulty(DIFFICULTY_HARD); } - - - if( GetMeter() < 1 || GetMeter() > 10 ) // meter is invalid + // Meter is overflowing (invalid), but some files (especially maniac/smaniac steps) are purposefully set higher than 10. + // See: BMR's Gravity; we probably should keep those as difficult as we can represent. + if( GetMeter() >10 ) { + if( GetDifficulty() == DIFFICULTY_HARD || GetDifficulty() == DIFFICULTY_CHALLENGE) + SetMeter(10); + else + SetMeter(0); + } + if( GetMeter() < 1) // meter is invalid { // guess meter from difficulty class switch( GetDifficulty() )