simplify
This commit is contained in:
@@ -226,11 +226,12 @@ void ScreenOptions::InitOptionsText()
|
|||||||
|
|
||||||
for( int p=0; p<NUM_PLAYERS; p++ )
|
for( int p=0; p<NUM_PLAYERS; p++ )
|
||||||
{
|
{
|
||||||
if( GAMESTATE->IsHumanPlayer(p) )
|
if( !GAMESTATE->IsHumanPlayer(p) )
|
||||||
{
|
continue;
|
||||||
|
|
||||||
BitmapText &option = m_textItems[i][p];
|
BitmapText &option = m_textItems[i][p];
|
||||||
|
|
||||||
int iChoiceInRow = m_iSelectedOption[p][i];
|
const int iChoiceInRow = m_iSelectedOption[p][i];
|
||||||
|
|
||||||
option.LoadFromFont( THEME->GetPathToF("ScreenOptions item") );
|
option.LoadFromFont( THEME->GetPathToF("ScreenOptions item") );
|
||||||
option.SetText( m_OptionRow[i].choices[iChoiceInRow] );
|
option.SetText( m_OptionRow[i].choices[iChoiceInRow] );
|
||||||
@@ -243,7 +244,6 @@ void ScreenOptions::InitOptionsText()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
BitmapText &option = m_textItems[i][0];
|
BitmapText &option = m_textItems[i][0];
|
||||||
option.LoadFromFont( THEME->GetPathToF("ScreenOptions item") );
|
option.LoadFromFont( THEME->GetPathToF("ScreenOptions item") );
|
||||||
|
|||||||
Reference in New Issue
Block a user