fix "together" row flag
This commit is contained in:
@@ -1310,10 +1310,17 @@ void ScreenOptions::ChangeValueInRow( PlayerNumber pn, int iDelta, bool Repeat )
|
|||||||
|
|
||||||
if( optrow.bOneChoiceForAllPlayers )
|
if( optrow.bOneChoiceForAllPlayers )
|
||||||
{
|
{
|
||||||
|
row.m_iChoiceWithFocus[pn] = iNewChoiceWithFocus;
|
||||||
|
|
||||||
|
if( m_InputMode == INPUTMODE_TOGETHER )
|
||||||
|
{
|
||||||
|
// lock focus together
|
||||||
|
FOREACH_HumanPlayer( pn )
|
||||||
|
row.m_iChoiceWithFocus[pn] = iNewChoiceWithFocus;
|
||||||
|
}
|
||||||
|
|
||||||
for( int p=0; p<NUM_PLAYERS; p++ )
|
for( int p=0; p<NUM_PLAYERS; p++ )
|
||||||
{
|
{
|
||||||
row.m_iChoiceWithFocus[p] = iNewChoiceWithFocus;
|
|
||||||
|
|
||||||
if( m_OptionsNavigation==NAV_FIRST_CHOICE_GOES_DOWN )
|
if( m_OptionsNavigation==NAV_FIRST_CHOICE_GOES_DOWN )
|
||||||
{
|
{
|
||||||
; // do nothing
|
; // do nothing
|
||||||
|
|||||||
@@ -146,7 +146,8 @@ protected:
|
|||||||
}
|
}
|
||||||
void SetOneSharedSelection( int iChoice )
|
void SetOneSharedSelection( int iChoice )
|
||||||
{
|
{
|
||||||
SetOneSelection( (PlayerNumber)0, iChoice );
|
FOREACH_HumanPlayer( pn )
|
||||||
|
SetOneSelection( pn, iChoice );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
vector<Row*> m_Rows;
|
vector<Row*> m_Rows;
|
||||||
|
|||||||
Reference in New Issue
Block a user