fix combo and life history don't accumulate correctly in courses

change combo and life history position units to Seconds from Beats
This commit is contained in:
Chris Danford
2004-07-24 18:11:04 +00:00
parent fa6f155c70
commit 05257b050c
7 changed files with 59 additions and 60 deletions
+1 -1
View File
@@ -289,7 +289,7 @@ float NoteDataWithScoring::GetActualVoltageRadarValue( float fSongSeconds, Playe
* keeper. Instead, let's use the length of the longest recorded combo. This is
* only subtly different: it's the percent of the song the longest combo took to get. */
const StageStats::Combo_t MaxCombo = g_CurStageStats.GetMaxCombo( pn );
float fComboPercent = SCALE( MaxCombo.size, 0, g_CurStageStats.fLastPos[pn]-g_CurStageStats.fFirstPos[pn], 0.0f, 1.0f );
float fComboPercent = SCALE( MaxCombo.fSizeSeconds, 0, g_CurStageStats.fLastSecond[pn]-g_CurStageStats.fFirstSecond[pn], 0.0f, 1.0f );
return clamp( fComboPercent, 0.0f, 1.0f );
}