sanity check
fix m_sprMore in doubles
This commit is contained in:
@@ -141,6 +141,10 @@ void ScreenOptions::Init( InputMode im, OptionRowData OptionRows[], int iNumOpti
|
|||||||
Row &Row = *m_Rows[r];
|
Row &Row = *m_Rows[r];
|
||||||
Row.m_RowDef = OptionRows[r];
|
Row.m_RowDef = OptionRows[r];
|
||||||
|
|
||||||
|
if( !OptionRows[r].choices.size() )
|
||||||
|
RageException::Throw( "Screen %s menu entry \"%s\" has no choices",
|
||||||
|
m_sName.c_str(), OptionRows[r].name.c_str() );
|
||||||
|
|
||||||
for( int p=0; p<NUM_PLAYERS; p++ )
|
for( int p=0; p<NUM_PLAYERS; p++ )
|
||||||
{
|
{
|
||||||
vector<bool> &vbSelected = Row.m_vbSelected[p];
|
vector<bool> &vbSelected = Row.m_vbSelected[p];
|
||||||
@@ -1107,7 +1111,7 @@ void ScreenOptions::OnChange( PlayerNumber pn )
|
|||||||
TweenCursor( (PlayerNumber) p );
|
TweenCursor( (PlayerNumber) p );
|
||||||
|
|
||||||
const bool ExitSelected = m_Rows[m_iCurrentRow[pn]]->Type == Row::ROW_EXIT;
|
const bool ExitSelected = m_Rows[m_iCurrentRow[pn]]->Type == Row::ROW_EXIT;
|
||||||
if( p == pn || GAMESTATE->GetNumSidesJoined() == 1 )
|
if( p == pn || GAMESTATE->GetNumHumanPlayers() == 1 )
|
||||||
{
|
{
|
||||||
if( m_bWasOnExit[p] != ExitSelected )
|
if( m_bWasOnExit[p] != ExitSelected )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user