Don't reset focus on the speedmod row to make changing the mod easier
authorMikko Rasa <tdb@tdb.fi>
Wed, 27 Jun 2012 18:54:27 +0000 (21:54 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 27 Jun 2012 18:58:17 +0000 (21:58 +0300)
src/OptionRow.cpp

index cf7e17b..2832512 100755 (executable)
@@ -262,6 +262,7 @@ void OptionRow::AfterImportOptions()
                                        m_vbSelected[p][0] = true;
                                
                                m_iChoiceInRowWithFocus[p] = GetOneSelection(p, true);  // focus on the selection we just set
+                               LOG->Debug("Row %s has focus on %d for player %d", m_RowDef.name.c_str(), m_iChoiceInRowWithFocus[p], p);
                        }
                        break;
                case SELECT_MULTIPLE:
@@ -414,7 +415,7 @@ void OptionRow::AfterImportOptions()
        //
        // HACK: Set focus to one item in the row, which is "go down"
        //
-       if( m_bFirstItemGoesDown )
+       if( m_bFirstItemGoesDown && m_RowDef.name != "Speed" )
                FOREACH_PlayerNumber( p )
                        m_iChoiceInRowWithFocus[p] = 0; 
 }