being a bit more explicit than usual, since the stuff in this screen is complicated

This commit is contained in:
Glenn Maynard
2006-02-03 04:36:48 +00:00
parent 33e297b0c8
commit b556348e31
+6 -1
View File
@@ -1138,6 +1138,9 @@ void ScreenOptions::MoveRowRelative( PlayerNumber pn, int iDir, bool Repeat )
if( m_InputMode == INPUTMODE_INDIVIDUAL && p != pn )
continue; // skip
//
// Update m_iCurrentRow.
//
int r = m_iCurrentRow[p] + iDir;
if( Repeat && ( r == -1 || r == (int) m_pRows.size() ) )
continue; // don't wrap while repeating
@@ -1150,8 +1153,10 @@ void ScreenOptions::MoveRowRelative( PlayerNumber pn, int iDir, bool Repeat )
m_iCurrentRow[p] = r;
ASSERT( r >= 0 && r < (int)m_pRows.size() );
//
// We've moved vertically. In FIVE_KEY, keep the selection in the row near the focus.
//
OptionRow &row = *m_pRows[r];
switch( m_OptionsNavigation )
{
case NAV_TOGGLE_FIVE_KEY: