simplify: no need to special case Exit

This commit is contained in:
Glenn Maynard
2006-01-18 04:59:00 +00:00
parent aab0edf1c2
commit 17202a5284
+23 -35
View File
@@ -886,46 +886,34 @@ void OptionRow::SetExitText( CString sExitText )
void OptionRow::Reload()
{
switch( GetRowType() )
{
case OptionRow::RowType_Normal:
{
// TODO: Nothing uses this yet and it causes skips when changing options.
//if( m_pHand->m_Def.m_bExportOnChange )
//{
// bool bRowHasFocus[NUM_PLAYERS];
// ZERO( bRowHasFocus );
// ExportOptions( vpns, bRowHasFocus );
//}
// TODO: Nothing uses this yet and it causes skips when changing options.
//if( m_pHand->m_Def.m_bExportOnChange )
//{
// bool bRowHasFocus[NUM_PLAYERS];
// ZERO( bRowHasFocus );
// ExportOptions( vpns, bRowHasFocus );
//}
if( !m_pHand->Reload() )
break;
if( !m_pHand->Reload() )
return;
ChoicesChanged();
ChoicesChanged();
vector<PlayerNumber> vpns;
FOREACH_HumanPlayer( p )
vpns.push_back( p );
ImportOptions( vpns );
AfterImportOptions();
vector<PlayerNumber> vpns;
FOREACH_HumanPlayer( p )
vpns.push_back( p );
ImportOptions( vpns );
AfterImportOptions();
// TODO: Nothing uses this yet and it causes skips when changing options.
//if( m_pHand->m_Def.m_bExportOnChange )
//{
// bool bRowHasFocus[NUM_PLAYERS];
// ZERO( bRowHasFocus );
// ExportOptions( vpns, bRowHasFocus );
//}
// TODO: Nothing uses this yet and it causes skips when changing options.
//if( m_pHand->m_Def.m_bExportOnChange )
//{
// bool bRowHasFocus[NUM_PLAYERS];
// ZERO( bRowHasFocus );
// ExportOptions( vpns, bRowHasFocus );
//}
UpdateEnabledDisabled();
}
break;
case OptionRow::RowType_Exit:
// nothing to do
break;
default:
ASSERT(0);
}
UpdateEnabledDisabled();
}
void OptionRow::HandleMessage( const CString& sMessage )