From 86cbc8accda67cbf44e27dd86a5e7200cfc67749 Mon Sep 17 00:00:00 2001 From: Josh Allen Date: Fri, 24 Nov 2006 16:03:49 +0000 Subject: [PATCH] Clean up a little --- stepmania/src/ScreenNetEvaluation.cpp | 30 +++++++++------------------ 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/stepmania/src/ScreenNetEvaluation.cpp b/stepmania/src/ScreenNetEvaluation.cpp index eef7444a94..613c4cba29 100644 --- a/stepmania/src/ScreenNetEvaluation.cpp +++ b/stepmania/src/ScreenNetEvaluation.cpp @@ -26,7 +26,6 @@ void ScreenNetEvaluation::Init() ScreenEvaluation::Init(); m_bHasStats = false; - m_pActivePlayer = PLAYER_1; m_iCurrentPlayer = 0; FOREACH_PlayerNumber (pn) @@ -58,19 +57,18 @@ void ScreenNetEvaluation::Init() void ScreenNetEvaluation::RedoUserTexts() { m_iActivePlayers = NSMAN->m_ActivePlayers; - //If unessiary, just don't do this function. + + //If unnecessary, just don't do this function. if ( m_iActivePlayers == (int)m_textUsers.size() ) return; + for( unsigned int i=0; i < m_textUsers.size(); ++i ) + this->RemoveChild( &m_textUsers[i] ); + float cx = THEME->GetMetricF("ScreenNetEvaluation",ssprintf("User%dX",m_iShowSide)); float cy = THEME->GetMetricF("ScreenNetEvaluation",ssprintf("User%dY",m_iShowSide)); m_iCurrentPlayer = 0; - - for( int i=0; iRemoveChild( &m_textUsers[i] ); - m_textUsers.resize(m_iActivePlayers); for( int i=0; iTrace("SMNETDebug:%d,%d",m_iActivePlayers,NSMAN->m_ActivePlayers); - //XXX: This does remove functionalty, but until - // the cause for the strange snowball ScreenManager - // crash can be found... this is the only way. - if ( m_iActivePlayers != NSMAN->m_ActivePlayers ) - return; - RedoUserTexts(); LOG->Trace("SMNETCheckpoint");