merge code paths
This commit is contained in:
@@ -1072,9 +1072,13 @@ void ScreenOptions::ChangeValueInRowRelative( int iRow, PlayerNumber pn, int iDe
|
|||||||
StoreFocus( p );
|
StoreFocus( p );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
FOREACH_PlayerNumber( p )
|
FOREACH_PlayerNumber( p )
|
||||||
{
|
{
|
||||||
|
if( !row.GetRowDef().m_bOneChoiceForAllPlayers && p != pn )
|
||||||
|
continue;
|
||||||
|
|
||||||
if( m_OptionsNavigation==NAV_TOGGLE_THREE_KEY || m_OptionsNavigation==NAV_TOGGLE_FIVE_KEY )
|
if( m_OptionsNavigation==NAV_TOGGLE_THREE_KEY || m_OptionsNavigation==NAV_TOGGLE_FIVE_KEY )
|
||||||
{
|
{
|
||||||
; // do nothing
|
; // do nothing
|
||||||
@@ -1087,21 +1091,6 @@ void ScreenOptions::ChangeValueInRowRelative( int iRow, PlayerNumber pn, int iDe
|
|||||||
row.SetOneSelection( p, iNewChoiceWithFocus );
|
row.SetOneSelection( p, iNewChoiceWithFocus );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if( m_OptionsNavigation==NAV_TOGGLE_THREE_KEY || m_OptionsNavigation==NAV_TOGGLE_FIVE_KEY )
|
|
||||||
{
|
|
||||||
; // do nothing
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if( row.GetRowDef().m_selectType == SELECT_MULTIPLE )
|
|
||||||
; // do nothing. User must press Start to toggle the selection.
|
|
||||||
else
|
|
||||||
row.SetOneSelection( pn, iNewChoiceWithFocus );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// XXX: What was this NAV_THREE_KEY_MENU special case for?
|
// XXX: What was this NAV_THREE_KEY_MENU special case for?
|
||||||
if( bOneChanged )
|
if( bOneChanged )
|
||||||
|
|||||||
Reference in New Issue
Block a user