hide tutorial songs in all modes but PLAY_MODE_ARCADE

This commit is contained in:
Chris Danford
2004-06-10 08:43:53 +00:00
parent 14aa978423
commit cb6800ccd4
3 changed files with 29 additions and 8 deletions
+14
View File
@@ -26,6 +26,7 @@
#include "ProfileManager.h"
#include "StageStats.h"
#include "StepsUtil.h"
#include "Foreach.h"
#include "NotesLoaderSM.h"
#include "NotesLoaderDWI.h"
@@ -1184,6 +1185,19 @@ bool Song::IsEasy( StepsType st ) const
return false;
}
bool Song::IsTutorial() const
{
FOREACH_CONST( Steps*, m_vpSteps, s )
{
if( (*s)->m_StepsType == STEPS_TYPE_LIGHTS_CABINET )
continue; // ignore
if( (*s)->GetDifficulty() != DIFFICULTY_BEGINNER )
return false;
}
return true;
}
bool Song::HasEdits( StepsType st ) const
{
for( unsigned i=0; i<m_vpSteps.size(); i++ )