don't wipe out meter > 10

This commit is contained in:
Glenn Maynard
2003-02-09 01:30:06 +00:00
parent fe564eebbd
commit 429fb10c70
2 changed files with 7 additions and 2 deletions
+6 -2
View File
@@ -133,12 +133,16 @@ void Notes::TidyUpData()
}
// 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 ) {
/* Why? If the data file says a meter of 72, we should keep it as 72; if
* individual bits of code (eg. scoring, feet) have maximums, they should
* enforce it internally. Doing it here will make us lose the difficulty
* completely if the song is edited and written. -glenn */
/* 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
+1
View File
@@ -8,6 +8,7 @@ ScoreKeeperMAX2::ScoreKeeperMAX2(Notes *notes, NoteDataWithScoring &data, Player
// Stats_DoublesCount = true;
int Meter = notes? notes->GetMeter() : 5;
Meter = min(Meter, 10);
/* Hold notes count as two tap notes. However, hold notes already count
* as 1 in GetNumTapNotes(), so only add 1*GetNumHoldNotes, not 2. */