style
This commit is contained in:
@@ -796,13 +796,13 @@ void ScreenOptions::AfterChangeValueOrRow( PlayerNumber pn )
|
|||||||
|
|
||||||
int iCurrentRow = m_iCurrentRow[pn];
|
int iCurrentRow = m_iCurrentRow[pn];
|
||||||
OptionRow &row = *m_pRows[iCurrentRow];
|
OptionRow &row = *m_pRows[iCurrentRow];
|
||||||
const bool ExitSelected = row.GetRowType() == OptionRow::RowType_Exit;
|
const bool bExitSelected = row.GetRowType() == OptionRow::RowType_Exit;
|
||||||
if( p == pn || GAMESTATE->GetNumHumanPlayers() == 1 )
|
if( p == pn || GAMESTATE->GetNumHumanPlayers() == 1 )
|
||||||
{
|
{
|
||||||
if( m_bWasOnExit[p] != ExitSelected )
|
if( m_bWasOnExit[p] != bExitSelected )
|
||||||
{
|
{
|
||||||
m_bWasOnExit[p] = ExitSelected;
|
m_bWasOnExit[p] = bExitSelected;
|
||||||
COMMAND( m_sprMore, ssprintf("Exit%sP%i", ExitSelected? "Selected":"Unselected", p+1) );
|
COMMAND( m_sprMore, ssprintf("Exit%sP%i", bExitSelected? "Selected":"Unselected", p+1) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user