checkpoints
This commit is contained in:
@@ -248,38 +248,34 @@ float Profile::GetSongsActual( StepsType st, Difficulty dc ) const
|
|||||||
if( pSong->m_SelectionDisplay == Song::SHOW_NEVER )
|
if( pSong->m_SelectionDisplay == Song::SHOW_NEVER )
|
||||||
continue; // skip
|
continue; // skip
|
||||||
|
|
||||||
|
CHECKPOINT_M( ssprintf("Profile::GetSongsActual: song %s", pSong->GetSongDir().c_str()) );
|
||||||
const HighScoresForASong &hsfas = i->second;
|
const HighScoresForASong &hsfas = i->second;
|
||||||
CHECKPOINT_M( ssprintf("Profile::GetSongsActual: %p", &hsfas) );
|
|
||||||
|
|
||||||
for( std::map<StepsID,HighScoresForASteps>::const_iterator j = hsfas.m_StepsHighScores.begin();
|
for( std::map<StepsID,HighScoresForASteps>::const_iterator j = hsfas.m_StepsHighScores.begin();
|
||||||
j != hsfas.m_StepsHighScores.end();
|
j != hsfas.m_StepsHighScores.end();
|
||||||
++j )
|
++j )
|
||||||
{
|
{
|
||||||
const StepsID &id = j->first;
|
const StepsID &id = j->first;
|
||||||
CHECKPOINT_M( ssprintf("Profile::GetSongsActual: n %s", id.ToString().c_str()) );
|
|
||||||
Steps* pSteps = id.ToSteps( pSong, true );
|
Steps* pSteps = id.ToSteps( pSong, true );
|
||||||
CHECKPOINT_M( ssprintf("Profile::GetSongsActual: steps %p", pSteps) );
|
CHECKPOINT_M( ssprintf("Profile::GetSongsActual: song %p, steps %p", pSong, pSteps) );
|
||||||
|
|
||||||
// If the Steps isn't loaded on the current machine, then we can't
|
// If the Steps isn't loaded on the current machine, then we can't
|
||||||
// get radar values to compute dance points.
|
// get radar values to compute dance points.
|
||||||
if( pSteps == NULL )
|
if( pSteps == NULL )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
CHECKPOINT_M( ssprintf("Profile::GetSongsActual: StepsType %d", pSteps->m_StepsType) );
|
|
||||||
if( pSteps->m_StepsType != st )
|
if( pSteps->m_StepsType != st )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
CHECKPOINT_M( ssprintf("Profile::GetSongsActual: Difficulty %d", pSteps->GetDifficulty()) );
|
CHECKPOINT_M( ssprintf("Profile::GetSongsActual: n %s = %p", id.ToString().c_str(), pSteps) );
|
||||||
if( pSteps->GetDifficulty() != dc )
|
if( pSteps->GetDifficulty() != dc )
|
||||||
continue; // skip
|
continue; // skip
|
||||||
|
CHECKPOINT;
|
||||||
|
|
||||||
const HighScoresForASteps& h = j->second;
|
const HighScoresForASteps& h = j->second;
|
||||||
CHECKPOINT_M( ssprintf("Profile::GetSongsActual: h %p", &h) );
|
|
||||||
const HighScoreList& hs = h.hs;
|
const HighScoreList& hs = h.hs;
|
||||||
CHECKPOINT_M( ssprintf("Profile::GetSongsActual: hs %p", &hs) );
|
|
||||||
|
|
||||||
fTotalPercents += hs.GetTopScore().fPercentDP;
|
fTotalPercents += hs.GetTopScore().fPercentDP;
|
||||||
CHECKPOINT;
|
|
||||||
}
|
}
|
||||||
CHECKPOINT;
|
CHECKPOINT;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user