Don't show points for inactive players.

This commit is contained in:
Glenn Maynard
2003-10-13 04:43:36 +00:00
parent 80b7186a42
commit 2b6e2eb9e9
+6
View File
@@ -405,6 +405,9 @@ ScreenEvaluation::ScreenEvaluation( CString sClassName ) : Screen(sClassName)
{
for( p=0; p<NUM_PLAYERS; p++ )
{
if( !GAMESTATE->IsPlayerEnabled( (PlayerNumber)p ) )
continue; // skip
m_sprPercentFrame[p].SetName( ssprintf("PercentFrameP%d",p+1) );
m_sprPercentFrame[p].Load( THEME->GetPathToG(ssprintf("ScreenEvaluation percent frame p%d",p+1)) );
UtilSetXYAndOnCommand( m_sprPercentFrame[p], "ScreenEvaluation" );
@@ -737,6 +740,9 @@ void ScreenEvaluation::TweenOffScreen()
{
for( p=0; p<NUM_PLAYERS; p++ )
{
if( !GAMESTATE->IsPlayerEnabled( (PlayerNumber)p ) )
continue; // skip
UtilOffCommand( m_sprPercentFrame[p], "ScreenEvaluation" );
m_Percent[p].Command( THEME->GetMetric("ScreenEvaluation",ssprintf("PercentP%dOffCommand",p+1)) );
m_Percent[p].TweenOffScreen();