profiles are usable

This commit is contained in:
Chris Danford
2003-09-08 07:21:41 +00:00
parent f5bb646c1f
commit c0c680317c
19 changed files with 294 additions and 90 deletions
+14 -2
View File
@@ -34,6 +34,7 @@
#include "RageDisplay.h"
#include "RageTextureManager.h"
#include "Course.h"
#include "ProfileManager.h"
const int NUM_SCORE_DIGITS = 9;
@@ -886,8 +887,19 @@ void ScreenSelectMusic::AfterNotesChange( PlayerNumber pn )
// m_BPMDisplay.BeginTweening( 0.2f );
// m_BPMDisplay.SetZoomY( 1.2f );
if( pNotes && SONGMAN->IsUsingMemoryCard(pn) )
m_textHighScore[pn].SetText( ssprintf("%*i", NUM_SCORE_DIGITS, pNotes->m_MemCardScores[pn].iScore) );
if( pNotes )
{
int iScore;
if( PROFILEMAN->IsUsingProfile(pn) )
iScore = pNotes->m_MemCardScores[pn].iScore;
else
iScore = pNotes->m_MemCardScores[MEMORY_CARD_MACHINE].iScore;
m_textHighScore[pn].SetText( ssprintf("%*i", NUM_SCORE_DIGITS, iScore) );
}
else
{
m_textHighScore[pn].SetText( ssprintf("%*i", NUM_SCORE_DIGITS, 0) );
}
m_DifficultyIcon[pn].SetFromNotes( pn, pNotes );
if( pNotes && pNotes->IsAutogen() )