merge code paths
This commit is contained in:
@@ -1072,24 +1072,13 @@ void ScreenOptions::ChangeValueInRowRelative( int iRow, PlayerNumber pn, int iDe
|
|||||||
StoreFocus( p );
|
StoreFocus( p );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FOREACH_PlayerNumber( p )
|
|
||||||
{
|
|
||||||
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( p, iNewChoiceWithFocus );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
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
|
||||||
@@ -1099,7 +1088,7 @@ void ScreenOptions::ChangeValueInRowRelative( int iRow, PlayerNumber pn, int iDe
|
|||||||
if( row.GetRowDef().m_selectType == SELECT_MULTIPLE )
|
if( row.GetRowDef().m_selectType == SELECT_MULTIPLE )
|
||||||
; // do nothing. User must press Start to toggle the selection.
|
; // do nothing. User must press Start to toggle the selection.
|
||||||
else
|
else
|
||||||
row.SetOneSelection( pn, iNewChoiceWithFocus );
|
row.SetOneSelection( p, iNewChoiceWithFocus );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user