use ModeChoice::IsPlayable

This commit is contained in:
Glenn Maynard
2003-09-27 03:11:37 +00:00
parent 53c0a7b02e
commit 315daef127
4 changed files with 15 additions and 13 deletions
+5 -3
View File
@@ -222,11 +222,13 @@ void ScreenTitleMenu::Input( const DeviceInput& DeviceI, const InputEventType ty
case MENU_BUTTON_START:
/* return if the choice is invalid */
const ModeChoice &mc = m_aModeChoices[m_Choice];
if( mc.m_bInvalid )
CString why;
if( !mc.IsPlayable( &why ) )
{
m_soundInvalid.Play();
if( mc.m_sInvalidReason != "" )
SCREENMAN->SystemMessage( mc.m_sInvalidReason );
if( why != "" )
SCREENMAN->SystemMessage( why );
return;
}