overhauling stats: move all stats from SongManager to ProfileManager

This commit is contained in:
Chris Danford
2003-12-07 07:09:13 +00:00
parent ed1b541a23
commit bf98d8248a
14 changed files with 778 additions and 769 deletions
+4 -3
View File
@@ -21,6 +21,7 @@
#include "NoteData.h"
#include "NoteDataUtil.h"
#include "ActorUtil.h"
#include "ProfileManager.h"
static int g_iLastSongShown = 0;
@@ -419,9 +420,9 @@ void ScreenRanking::SetPage( PageToShow pts )
for( int l=0; l<NUM_RANKING_LINES; l++ )
{
SongManager::CategoryData::HighScore hs;
if( l < (int)SONGMAN->m_CategoryDatas[pts.nt][pts.category].vHighScores.size() )
hs = SONGMAN->m_CategoryDatas[pts.nt][pts.category].vHighScores[l];
ProfileManager::CategoryData::HighScore hs;
if( l < (int)PROFILEMAN->m_CategoryDatas[pts.nt][pts.category].vHighScores.size() )
hs = PROFILEMAN->m_CategoryDatas[pts.nt][pts.category].vHighScores[l];
if( hs.sName.empty() )
hs.sName = EMPTY_SCORE_NAME;