From 3beae6e2bc1db3243cd043154d4824c7c3447c03 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 14 Jan 2006 08:56:22 +0000 Subject: [PATCH] simplify --- stepmania/src/OptionRow.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/stepmania/src/OptionRow.cpp b/stepmania/src/OptionRow.cpp index 53c2bbf616..9be62bcc0b 100644 --- a/stepmania/src/OptionRow.cpp +++ b/stepmania/src/OptionRow.cpp @@ -428,12 +428,15 @@ void OptionRow::AfterImportOptions() if( m_RowDef.m_layoutType == LAYOUT_SHOW_ONE_IN_ROW && !m_RowDef.m_bOneChoiceForAllPlayers ) m_textItems[p]->SetHidden( !GAMESTATE->IsHumanPlayer(p) ); + } - if( m_RowType != OptionRow::RowType_Exit ) - { - for( unsigned c=0; cSetHidden( !GAMESTATE->IsHumanPlayer(p) ); - } + // Hide underlines for disabled players. + FOREACH_PlayerNumber( p ) + { + if( GAMESTATE->IsHumanPlayer(p) ) + continue; + for( unsigned c=0; cSetHidden( true ); } // Make all selections the same if bOneChoiceForAllPlayers