Add ModeChoice::IsZero.

This commit is contained in:
Glenn Maynard
2003-09-29 08:56:33 +00:00
parent 93ef4ec22e
commit a1ac9e2326
2 changed files with 15 additions and 0 deletions
+14
View File
@@ -253,3 +253,17 @@ void ModeChoice::Apply( PlayerNumber pn ) const
PROFILEMAN->TryLoadProfile( pn );
}
}
bool ModeChoice::IsZero() const
{
if( m_game != GAME_INVALID ||
m_pm != PLAY_MODE_INVALID ||
m_style != STYLE_INVALID ||
m_dc != DIFFICULTY_INVALID ||
m_sAnnouncer != "" ||
m_sModifiers != "" )
return false;
return true;
}