Style cleanup.
This commit is contained in:
@@ -28,11 +28,11 @@ void ScreenNetEvaluation::Init()
|
|||||||
m_bHasStats = false;
|
m_bHasStats = false;
|
||||||
m_iCurrentPlayer = 0;
|
m_iCurrentPlayer = 0;
|
||||||
|
|
||||||
FOREACH_PlayerNumber (pn)
|
FOREACH_ENUM( PlayerNumber, pn )
|
||||||
if ( GAMESTATE->IsPlayerEnabled( 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;
|
||||||
else
|
else
|
||||||
m_iShowSide = 1;
|
m_iShowSide = 1;
|
||||||
@@ -93,7 +93,7 @@ void ScreenNetEvaluation::MenuLeft( const InputEventPlus &input )
|
|||||||
|
|
||||||
void ScreenNetEvaluation::MenuUp( const InputEventPlus &input )
|
void ScreenNetEvaluation::MenuUp( const InputEventPlus &input )
|
||||||
{
|
{
|
||||||
if ( (m_iActivePlayers == 0) || !m_bHasStats )
|
if( m_iActivePlayers == 0 || !m_bHasStats )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
COMMAND( m_textUsers[m_iCurrentPlayer], "DeSel" );
|
COMMAND( m_textUsers[m_iCurrentPlayer], "DeSel" );
|
||||||
@@ -109,7 +109,7 @@ void ScreenNetEvaluation::MenuRight( const InputEventPlus &input )
|
|||||||
|
|
||||||
void ScreenNetEvaluation::MenuDown( const InputEventPlus &input )
|
void ScreenNetEvaluation::MenuDown( const InputEventPlus &input )
|
||||||
{
|
{
|
||||||
if ( (m_iActivePlayers == 0) || !m_bHasStats )
|
if ( m_iActivePlayers == 0 || !m_bHasStats )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
COMMAND( m_textUsers[m_iCurrentPlayer], "DeSel" );
|
COMMAND( m_textUsers[m_iCurrentPlayer], "DeSel" );
|
||||||
@@ -124,11 +124,11 @@ void ScreenNetEvaluation::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
{
|
{
|
||||||
m_bHasStats = true;
|
m_bHasStats = true;
|
||||||
|
|
||||||
LOG->Trace("SMNETDebug:%d,%d",m_iActivePlayers,NSMAN->m_ActivePlayers);
|
LOG->Trace( "SMNETDebug:%d,%d",m_iActivePlayers,NSMAN->m_ActivePlayers );
|
||||||
|
|
||||||
RedoUserTexts();
|
RedoUserTexts();
|
||||||
|
|
||||||
LOG->Trace("SMNETCheckpoint");
|
LOG->Trace( "SMNETCheckpoint" );
|
||||||
for( int i=0; i<m_iActivePlayers; ++i )
|
for( int i=0; i<m_iActivePlayers; ++i )
|
||||||
{
|
{
|
||||||
//Strange occourances because of timing
|
//Strange occourances because of timing
|
||||||
@@ -153,7 +153,7 @@ void ScreenNetEvaluation::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
else
|
else
|
||||||
m_textUsers[i].SetRainbowScroll( false );
|
m_textUsers[i].SetRainbowScroll( false );
|
||||||
ON_COMMAND( m_textUsers[i] );
|
ON_COMMAND( m_textUsers[i] );
|
||||||
LOG->Trace("SMNETCheckpoint%d",i);
|
LOG->Trace( "SMNETCheckpoint%d", i );
|
||||||
}
|
}
|
||||||
return; //no need to let ScreenEvaluation get ahold of this.
|
return; //no need to let ScreenEvaluation get ahold of this.
|
||||||
}
|
}
|
||||||
@@ -188,11 +188,11 @@ void ScreenNetEvaluation::UpdateStats()
|
|||||||
m_DifficultyIcon[m_pActivePlayer].SetFromDifficulty( NSMAN->m_EvalPlayerData[m_iCurrentPlayer].difficulty );
|
m_DifficultyIcon[m_pActivePlayer].SetFromDifficulty( NSMAN->m_EvalPlayerData[m_iCurrentPlayer].difficulty );
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int j=0; j<NETNUMTAPSCORES; ++j)
|
for( int j=0; j<NETNUMTAPSCORES; ++j )
|
||||||
{
|
{
|
||||||
int iNumDigits = (j==JudgeLine_MaxCombo) ? MAX_COMBO_NUM_DIGITS : 4;
|
int iNumDigits = (j==JudgeLine_MaxCombo)? MAX_COMBO_NUM_DIGITS:4;
|
||||||
if (m_textJudgeNumbers[j][m_pActivePlayer].m_pFont != NULL)
|
if( m_textJudgeNumbers[j][m_pActivePlayer].m_pFont != NULL )
|
||||||
m_textJudgeNumbers[j][m_pActivePlayer].SetText( ssprintf( "%*d", iNumDigits, NSMAN->m_EvalPlayerData[m_iCurrentPlayer].tapScores[j] ) );
|
m_textJudgeNumbers[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