simplify
This commit is contained in:
@@ -232,7 +232,8 @@ void ScreenTitleMenu::Input( const DeviceInput& DeviceI, const InputEventType ty
|
|||||||
break;
|
break;
|
||||||
/* break if the choice is invalid */
|
/* break if the choice is invalid */
|
||||||
if( m_Choice == CHOICE_JUKEBOX ||
|
if( m_Choice == CHOICE_JUKEBOX ||
|
||||||
m_Choice == CHOICE_EDIT )
|
m_Choice == CHOICE_EDIT ||
|
||||||
|
m_Choice == CHOICE_EDIT_COURSES )
|
||||||
{
|
{
|
||||||
if( SONGMAN->GetNumSongs() == 0 )
|
if( SONGMAN->GetNumSongs() == 0 )
|
||||||
{
|
{
|
||||||
@@ -252,12 +253,6 @@ void ScreenTitleMenu::Input( const DeviceInput& DeviceI, const InputEventType ty
|
|||||||
SCREENMAN->SystemMessage( "No courses are installed" );
|
SCREENMAN->SystemMessage( "No courses are installed" );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if( SONGMAN->GetNumSongs() == 0 )
|
|
||||||
{
|
|
||||||
m_soundInvalid.Play();
|
|
||||||
SCREENMAN->SystemMessage( "No songs are installed" );
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if( m_Choice == CHOICE_EXIT )
|
if( m_Choice == CHOICE_EXIT )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user