From 48d6a50e3909e62792a4ffce8f5a7ad73ad34e9f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 22 Apr 2003 00:27:52 +0000 Subject: [PATCH] simplify --- stepmania/src/ScreenOptions.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/stepmania/src/ScreenOptions.cpp b/stepmania/src/ScreenOptions.cpp index b1914fb263..fda703e53d 100644 --- a/stepmania/src/ScreenOptions.cpp +++ b/stepmania/src/ScreenOptions.cpp @@ -226,21 +226,21 @@ void ScreenOptions::InitOptionsText() for( int p=0; pIsHumanPlayer(p) ) - { - BitmapText &option = m_textItems[i][p]; + if( !GAMESTATE->IsHumanPlayer(p) ) + continue; - int iChoiceInRow = m_iSelectedOption[p][i]; + BitmapText &option = m_textItems[i][p]; - option.LoadFromFont( THEME->GetPathToF("ScreenOptions item") ); - option.SetText( m_OptionRow[i].choices[iChoiceInRow] ); - option.SetZoom( ITEMS_ZOOM ); - option.EnableShadow( false ); + const int iChoiceInRow = m_iSelectedOption[p][i]; - option.SetXY( ITEM_X[p], fY ); + option.LoadFromFont( THEME->GetPathToF("ScreenOptions item") ); + option.SetText( m_OptionRow[i].choices[iChoiceInRow] ); + option.SetZoom( ITEMS_ZOOM ); + option.EnableShadow( false ); - UpdateText( (PlayerNumber)p ); - } + option.SetXY( ITEM_X[p], fY ); + + UpdateText( (PlayerNumber)p ); } } }