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() );
}
}
#include "RageLog.h"
const HighScore& HighScoreList::GetTopScore() const
{
if( vHighScores.empty() )
{
LOG->Trace("empty");
static HighScore hs;
hs = HighScore();
return hs;
}
else
{
LOG->Trace("not empty");
return vHighScores[0];
}
}
+1 -3
View File
@@ -330,11 +330,9 @@ HighScoreList& Profile::GetStepsHighScoreList( const Song* pSong, const Steps* p
StepsID stepsID;
stepsID.FromSteps( pSteps );
CHECKPOINT;
HighScoresForASong &hsSong = m_SongHighScores[songID]; // operator[] inserts into map
CHECKPOINT;
HighScoresForASteps &hsSteps = hsSong.m_StepsHighScores[stepsID]; // operator[] inserts into map
CHECKPOINT;
return hsSteps.hs;
}
-3
View File
@@ -1283,12 +1283,9 @@ int Song::GetNumNotesWithGrade( Grade g ) const
{
Steps* pSteps = vNotes[j];
CHECKPOINT;
if( PROFILEMAN->GetMachineProfile()->GetStepsHighScoreList(this,pSteps).GetTopScore().grade == g )
iCount++;
CHECKPOINT;
}
CHECKPOINT;
return iCount;
}