fix high score displays not showing high score number

This commit is contained in:
Chris Danford
2008-04-26 19:43:08 +00:00
parent 5be01cfab7
commit 707789af7e
4 changed files with 5 additions and 3 deletions
+2
View File
@@ -605,6 +605,7 @@ void ScreenEvaluation::Init()
{
if( m_pStageStats->m_player[p].m_iMachineHighScoreIndex != -1 )
{
LuaThreadVariable var( "MachineHighScoreNumber", LuaReference::Create(m_pStageStats->m_player[p].m_iMachineHighScoreIndex+1) );
m_sprMachineRecord[p].Load( THEME->GetPathG( m_sName, ssprintf("MachineRecord",m_pStageStats->m_player[p].m_iMachineHighScoreIndex+1) ) );
m_sprMachineRecord[p]->SetName( ssprintf("MachineRecordP%d",p+1) );
ActorUtil::LoadAllCommands( *m_sprMachineRecord[p], m_sName );
@@ -613,6 +614,7 @@ void ScreenEvaluation::Init()
}
if( m_pStageStats->m_player[p].m_iProfileHighScoreIndex != -1 )
{
LuaThreadVariable var( "ProfileHighScoreNumber", LuaReference::Create(m_pStageStats->m_player[p].m_iProfileHighScoreIndex+1) );
m_sprProfileRecord[p].Load( THEME->GetPathG( m_sName, ssprintf("ProfileRecord",m_pStageStats->m_player[p].m_iProfileHighScoreIndex+1) ) );
m_sprProfileRecord[p]->SetName( ssprintf("ProfileRecordP%d",p+1) );
ActorUtil::LoadAllCommands( *m_sprProfileRecord[p], m_sName );