From ca738bcccfbec231ff7449f8d9cc127cd4056eba Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 3 Feb 2006 08:53:31 +0000 Subject: [PATCH] cleanup remove old comment --- stepmania/src/ScreenOptions.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/stepmania/src/ScreenOptions.cpp b/stepmania/src/ScreenOptions.cpp index 6d07597dab..c15e31560d 100644 --- a/stepmania/src/ScreenOptions.cpp +++ b/stepmania/src/ScreenOptions.cpp @@ -162,10 +162,8 @@ void ScreenOptions::Init() switch( m_InputMode ) { case INPUTMODE_INDIVIDUAL: - { - FOREACH_PlayerNumber( p ) - m_textExplanation[p].SetXY( EXPLANATION_X.GetValue(p), EXPLANATION_Y.GetValue(p) ); - } + FOREACH_PlayerNumber( p ) + m_textExplanation[p].SetXY( EXPLANATION_X.GetValue(p), EXPLANATION_Y.GetValue(p) ); break; case INPUTMODE_SHARE_CURSOR: m_textExplanation[0].SetXY( EXPLANATION_TOGETHER_X, EXPLANATION_TOGETHER_Y ); @@ -435,7 +433,6 @@ void ScreenOptions::RefreshAllIcons() void ScreenOptions::PositionCursors() { // Set the position of the cursor showing the current option the user is changing. - // Set the position of the underlines showing the current choice for each option line. FOREACH_HumanPlayer( pn ) { const int iRow = m_iCurrentRow[pn]; @@ -444,7 +441,6 @@ void ScreenOptions::PositionCursors() ASSERT_M( iRow >= 0 && iRow < (int)m_pRows.size(), ssprintf("%i < %i", iRow, (int)m_pRows.size() ) ); const OptionRow &row = *m_pRows[iRow]; - OptionsCursorPlus &cursor = m_Cursor[pn]; const int iChoiceWithFocus = row.GetChoiceInRowWithFocus(pn); if( iChoiceWithFocus == -1 ) @@ -452,6 +448,8 @@ void ScreenOptions::PositionCursors() int iWidth, iX, iY; GetWidthXY( pn, iRow, iChoiceWithFocus, iWidth, iX, iY ); + + OptionsCursorPlus &cursor = m_Cursor[pn]; cursor.SetBarWidth( iWidth ); cursor.SetXY( (float)iX, (float)iY ); bool bCanGoLeft = iChoiceWithFocus > 0;