Only populate lines that are being shown.
This commit is contained in:
@@ -28,9 +28,10 @@ void ScreenNetEvaluation::Init()
|
|||||||
m_bHasStats = false;
|
m_bHasStats = false;
|
||||||
m_iCurrentPlayer = 0;
|
m_iCurrentPlayer = 0;
|
||||||
|
|
||||||
FOREACH_ENUM( PlayerNumber, pn )
|
FOREACH_EnabledPlayer( pn )
|
||||||
if( GAMESTATE->IsPlayerEnabled(pn) )
|
{
|
||||||
m_pActivePlayer = pn;
|
m_pActivePlayer = pn;
|
||||||
|
}
|
||||||
|
|
||||||
if( m_pActivePlayer == PLAYER_1 )
|
if( m_pActivePlayer == PLAYER_1 )
|
||||||
m_iShowSide = 2;
|
m_iShowSide = 2;
|
||||||
@@ -191,11 +192,15 @@ void ScreenNetEvaluation::UpdateStats()
|
|||||||
}
|
}
|
||||||
|
|
||||||
for( int j=0; j<NETNUMTAPSCORES; ++j )
|
for( int j=0; j<NETNUMTAPSCORES; ++j )
|
||||||
|
{
|
||||||
|
//The name will be blank if ScreenEvaluation determined the
|
||||||
|
//line should not be shown
|
||||||
|
if( !m_textJudgmentLineNumber[j][m_pActivePlayer].GetName().empty() )
|
||||||
{
|
{
|
||||||
int iNumDigits = (j==JudgmentLine_MaxCombo)? MAX_COMBO_NUM_DIGITS:4;
|
int iNumDigits = (j==JudgmentLine_MaxCombo)? MAX_COMBO_NUM_DIGITS:4;
|
||||||
if( GAMESTATE->IsPlayerEnabled(m_pActivePlayer) ) // XXX: Why would this not be the case? -- Steve
|
|
||||||
m_textJudgmentLineNumber[j][m_pActivePlayer].SetText( ssprintf("%*d", iNumDigits, NSMAN->m_EvalPlayerData[m_iCurrentPlayer].tapScores[j]) );
|
m_textJudgmentLineNumber[j][m_pActivePlayer].SetText( ssprintf("%*d", iNumDigits, NSMAN->m_EvalPlayerData[m_iCurrentPlayer].tapScores[j]) );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_textPlayerOptions[m_pActivePlayer].SetText( NSMAN->m_EvalPlayerData[m_iCurrentPlayer].playerOptions );
|
m_textPlayerOptions[m_pActivePlayer].SetText( NSMAN->m_EvalPlayerData[m_iCurrentPlayer].playerOptions );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user