don't enter course editor if 0 non-autogen courses or 0 songs

This commit is contained in:
Chris Danford
2003-08-16 17:45:23 +00:00
parent 725684ae81
commit 2be2718bb4
+10 -1
View File
@@ -235,12 +235,21 @@ void ScreenTitleMenu::Input( const DeviceInput& DeviceI, const InputEventType ty
}
if( m_Choice == CHOICE_EDIT_COURSES )
{
if( SONGMAN->GetNumCourses() == 0 )
vector<Course*> vCourses;
SONGMAN->GetAllCourses( vCourses, false );
if( vCourses.size() == 0 )
{
m_soundInvalid.Play();
SCREENMAN->SystemMessage( "No courses are installed" );
return;
}
if( SONGMAN->GetNumSongs() == 0 )
{
m_soundInvalid.Play();
SCREENMAN->SystemMessage( "No songs are installed" );
return;
}
}
if( m_Choice == CHOICE_EXIT )
{