better FillProfile for debugging

This commit is contained in:
Chris Danford
2006-03-21 03:57:56 +00:00
parent 9bf317e1e1
commit ab2184b45e
+7 -2
View File
@@ -644,10 +644,15 @@ static HighScore MakeRandomHighScore( float fPercentDP )
static void FillProfileStats( Profile *pProfile )
{
pProfile->InitSongScores();
pProfile->InitCourseScores();
static int s_iCount = 0;
// Choose a percent for all scores. This is useful for testing unlocks
// where some elements are unlocked at a certain percent complete
float fPercentDP = randomf( 0.6f, 1.2f );
CLAMP( fPercentDP, 0.0f, 1.0f );
float fPercentDP = s_iCount ? randomf( 0.6f, 1.0f ) : 1.0f;
s_iCount = (s_iCount+1)%2;
int iCount = pProfile->IsMachine()?
PREFSMAN->m_iMaxHighScoresPerListForMachine.Get():