Enforce difficulty meter ranges.

WARNING! This invalidates the cache!
TODO: Make MAX_METER a common metric?
This commit is contained in:
Jason Felds
2011-04-29 13:24:50 -04:00
parent 8ab76ed872
commit bbe90468b4
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -261,7 +261,7 @@ static RString GetSMNotesTag( const Song &song, const Steps &in )
RString desc = (USE_CREDIT ? in.GetCredit() : in.GetDescription());
lines.push_back( ssprintf( " %s:", SmEscape(desc).c_str() ) );
lines.push_back( ssprintf( " %s:", DifficultyToString(in.GetDifficulty()).c_str() ) );
lines.push_back( ssprintf( " %d:", in.GetMeter() ) );
lines.push_back( ssprintf( " %d:", clamp( in.GetMeter(), MIN_METER, MAX_METER ) ) );
vector<RString> asRadarValues;
// SM files don't use fakes for radar data. Keep it that way.