fewer code paths to set m_iChoiceInRowWithFocus

This commit is contained in:
Glenn Maynard
2006-01-19 01:14:59 +00:00
parent 8bcf6e8b12
commit 41f8a34c9f
+2 -2
View File
@@ -852,7 +852,7 @@ void OptionRow::ResetFocusFromSelection( PlayerNumber pn )
case SELECT_ONE: case SELECT_ONE:
/* Import the focus from the selected option. */ /* Import the focus from the selected option. */
int iSelection = GetOneSelection( pn, true ); int iSelection = GetOneSelection( pn, true );
m_iChoiceInRowWithFocus[pn] = iSelection; // focus on the selection we just set SetChoiceInRowWithFocus( pn, iSelection );
break; break;
} }
@@ -861,7 +861,7 @@ void OptionRow::ResetFocusFromSelection( PlayerNumber pn )
// //
if( m_bFirstItemGoesDown ) if( m_bFirstItemGoesDown )
FOREACH_PlayerNumber( p ) FOREACH_PlayerNumber( p )
m_iChoiceInRowWithFocus[p] = 0; SetChoiceInRowWithFocus( p, 0 );
} }
bool OptionRow::GetSelected( PlayerNumber pn, int iChoice ) const bool OptionRow::GetSelected( PlayerNumber pn, int iChoice ) const