From 5be01cfab7abbfb66529dfcd9df6ad815402362f Mon Sep 17 00:00:00 2001 From: Josh Allen Date: Sat, 26 Apr 2008 19:40:05 +0000 Subject: [PATCH] Only populate lines that are being shown. --- stepmania/src/ScreenNetEvaluation.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/stepmania/src/ScreenNetEvaluation.cpp b/stepmania/src/ScreenNetEvaluation.cpp index 4e98054ac1..61c7ab7985 100644 --- a/stepmania/src/ScreenNetEvaluation.cpp +++ b/stepmania/src/ScreenNetEvaluation.cpp @@ -28,10 +28,11 @@ void ScreenNetEvaluation::Init() m_bHasStats = false; m_iCurrentPlayer = 0; - FOREACH_ENUM( PlayerNumber, pn ) - if( GAMESTATE->IsPlayerEnabled(pn) ) - m_pActivePlayer = pn; - + FOREACH_EnabledPlayer( pn ) + { + m_pActivePlayer = pn; + } + if( m_pActivePlayer == PLAYER_1 ) m_iShowSide = 2; else @@ -192,9 +193,13 @@ void ScreenNetEvaluation::UpdateStats() for( int j=0; jIsPlayerEnabled(m_pActivePlayer) ) // XXX: Why would this not be the case? -- Steve + //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; 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 );