simplify: no need to special case Exit
This commit is contained in:
+23
-35
@@ -886,46 +886,34 @@ void OptionRow::SetExitText( CString sExitText )
|
|||||||
|
|
||||||
void OptionRow::Reload()
|
void OptionRow::Reload()
|
||||||
{
|
{
|
||||||
switch( GetRowType() )
|
// TODO: Nothing uses this yet and it causes skips when changing options.
|
||||||
{
|
//if( m_pHand->m_Def.m_bExportOnChange )
|
||||||
case OptionRow::RowType_Normal:
|
//{
|
||||||
{
|
// bool bRowHasFocus[NUM_PLAYERS];
|
||||||
// TODO: Nothing uses this yet and it causes skips when changing options.
|
// ZERO( bRowHasFocus );
|
||||||
//if( m_pHand->m_Def.m_bExportOnChange )
|
// ExportOptions( vpns, bRowHasFocus );
|
||||||
//{
|
//}
|
||||||
// bool bRowHasFocus[NUM_PLAYERS];
|
|
||||||
// ZERO( bRowHasFocus );
|
|
||||||
// ExportOptions( vpns, bRowHasFocus );
|
|
||||||
//}
|
|
||||||
|
|
||||||
if( !m_pHand->Reload() )
|
if( !m_pHand->Reload() )
|
||||||
break;
|
return;
|
||||||
|
|
||||||
ChoicesChanged();
|
ChoicesChanged();
|
||||||
|
|
||||||
vector<PlayerNumber> vpns;
|
vector<PlayerNumber> vpns;
|
||||||
FOREACH_HumanPlayer( p )
|
FOREACH_HumanPlayer( p )
|
||||||
vpns.push_back( p );
|
vpns.push_back( p );
|
||||||
ImportOptions( vpns );
|
ImportOptions( vpns );
|
||||||
AfterImportOptions();
|
AfterImportOptions();
|
||||||
|
|
||||||
// TODO: Nothing uses this yet and it causes skips when changing options.
|
// TODO: Nothing uses this yet and it causes skips when changing options.
|
||||||
//if( m_pHand->m_Def.m_bExportOnChange )
|
//if( m_pHand->m_Def.m_bExportOnChange )
|
||||||
//{
|
//{
|
||||||
// bool bRowHasFocus[NUM_PLAYERS];
|
// bool bRowHasFocus[NUM_PLAYERS];
|
||||||
// ZERO( bRowHasFocus );
|
// ZERO( bRowHasFocus );
|
||||||
// ExportOptions( vpns, bRowHasFocus );
|
// ExportOptions( vpns, bRowHasFocus );
|
||||||
//}
|
//}
|
||||||
|
|
||||||
UpdateEnabledDisabled();
|
UpdateEnabledDisabled();
|
||||||
}
|
|
||||||
break;
|
|
||||||
case OptionRow::RowType_Exit:
|
|
||||||
// nothing to do
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
ASSERT(0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OptionRow::HandleMessage( const CString& sMessage )
|
void OptionRow::HandleMessage( const CString& sMessage )
|
||||||
|
|||||||
Reference in New Issue
Block a user