remove redundant conditional
This commit is contained in:
@@ -939,19 +939,19 @@ void ScreenOptions::ProcessMenuStart( const InputEventPlus &input )
|
|||||||
break;
|
break;
|
||||||
case NAV_TOGGLE_THREE_KEY:
|
case NAV_TOGGLE_THREE_KEY:
|
||||||
case NAV_TOGGLE_FIVE_KEY:
|
case NAV_TOGGLE_FIVE_KEY:
|
||||||
if( row.GetRowDef().m_selectType != SELECT_MULTIPLE )
|
|
||||||
{
|
{
|
||||||
int iChoiceInRow = row.GetChoiceInRowWithFocus(pn);
|
int iChoiceInRow = row.GetChoiceInRowWithFocus(pn);
|
||||||
if( row.GetRowDef().m_bOneChoiceForAllPlayers )
|
if( row.GetRowDef().m_bOneChoiceForAllPlayers )
|
||||||
row.SetOneSharedSelection( iChoiceInRow );
|
row.SetOneSharedSelection( iChoiceInRow );
|
||||||
else
|
else
|
||||||
row.SetOneSelection( pn, iChoiceInRow );
|
row.SetOneSelection( pn, iChoiceInRow );
|
||||||
}
|
|
||||||
if( row.GetFirstItemGoesDown() )
|
if( row.GetFirstItemGoesDown() )
|
||||||
ChangeValueInRowRelative( m_iCurrentRow[pn], pn, -row.GetChoiceInRowWithFocus(pn), input.type != IET_FIRST_PRESS ); // move to the first choice
|
ChangeValueInRowRelative( m_iCurrentRow[pn], pn, -row.GetChoiceInRowWithFocus(pn), input.type != IET_FIRST_PRESS ); // move to the first choice
|
||||||
else
|
else
|
||||||
ChangeValueInRowRelative( m_iCurrentRow[pn], pn, 0, input.type != IET_FIRST_PRESS );
|
ChangeValueInRowRelative( m_iCurrentRow[pn], pn, 0, input.type != IET_FIRST_PRESS );
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case NAV_THREE_KEY_MENU:
|
case NAV_THREE_KEY_MENU:
|
||||||
ASSERT(0); // unreachable
|
ASSERT(0); // unreachable
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user