remove debugging
This commit is contained in:
@@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user