Scale GetTotalPossibleStepsSeconds() by fMusicRate. Fixes ComboGraph and GraphDisplay when using a different music rate.

This commit is contained in:
Steve Checkoway
2006-10-30 10:00:43 +00:00
parent 796aa48ba2
commit 9ef4cf40e0
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -27,6 +27,7 @@ StageStats::StageStats()
bUsedAutoplay = false;
fGameplaySeconds = 0;
fStepsSeconds = 0;
fMusicRate = 1;
}
void StageStats::Init()
@@ -129,7 +130,7 @@ float StageStats::GetTotalPossibleStepsSeconds() const
float fSecs = 0;
FOREACH_CONST( Song*, vpPossibleSongs, s )
fSecs += (*s)->GetStepsSeconds();
return fSecs;
return fSecs / fMusicRate;
}
void StageStats::CommitScores( bool bSummary )