remove debugging

This commit is contained in:
Glenn Maynard
2004-04-26 00:06:42 +00:00
parent fe9459b29e
commit 84e873bb28
3 changed files with 2 additions and 9 deletions
+1 -3
View File
@@ -115,19 +115,17 @@ void HighScoreList::AddHighScore( HighScore hs, int &iIndexOut )
vHighScores.erase( vHighScores.begin()+iMaxScores, vHighScores.end() ); vHighScores.erase( vHighScores.begin()+iMaxScores, vHighScores.end() );
} }
} }
#include "RageLog.h"
const HighScore& HighScoreList::GetTopScore() const const HighScore& HighScoreList::GetTopScore() const
{ {
if( vHighScores.empty() ) if( vHighScores.empty() )
{ {
LOG->Trace("empty");
static HighScore hs; static HighScore hs;
hs = HighScore(); hs = HighScore();
return hs; return hs;
} }
else else
{ {
LOG->Trace("not empty");
return vHighScores[0]; return vHighScores[0];
} }
} }
+1 -3
View File
@@ -330,11 +330,9 @@ HighScoreList& Profile::GetStepsHighScoreList( const Song* pSong, const Steps* p
StepsID stepsID; StepsID stepsID;
stepsID.FromSteps( pSteps ); stepsID.FromSteps( pSteps );
CHECKPOINT;
HighScoresForASong &hsSong = m_SongHighScores[songID]; // operator[] inserts into map HighScoresForASong &hsSong = m_SongHighScores[songID]; // operator[] inserts into map
CHECKPOINT;
HighScoresForASteps &hsSteps = hsSong.m_StepsHighScores[stepsID]; // operator[] inserts into map HighScoresForASteps &hsSteps = hsSong.m_StepsHighScores[stepsID]; // operator[] inserts into map
CHECKPOINT;
return hsSteps.hs; return hsSteps.hs;
} }
-3
View File
@@ -1283,12 +1283,9 @@ int Song::GetNumNotesWithGrade( Grade g ) const
{ {
Steps* pSteps = vNotes[j]; Steps* pSteps = vNotes[j];
CHECKPOINT;
if( PROFILEMAN->GetMachineProfile()->GetStepsHighScoreList(this,pSteps).GetTopScore().grade == g ) if( PROFILEMAN->GetMachineProfile()->GetStepsHighScoreList(this,pSteps).GetTopScore().grade == g )
iCount++; iCount++;
CHECKPOINT;
} }
CHECKPOINT;
return iCount; return iCount;
} }