From ab2184b45eeaa35af94ba61fe63940bb9ea429f9 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Tue, 21 Mar 2006 03:57:56 +0000 Subject: [PATCH] better FillProfile for debugging --- stepmania/src/ScreenDebugOverlay.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ScreenDebugOverlay.cpp b/stepmania/src/ScreenDebugOverlay.cpp index 2f377d75a9..11968f0a76 100644 --- a/stepmania/src/ScreenDebugOverlay.cpp +++ b/stepmania/src/ScreenDebugOverlay.cpp @@ -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():