Added new unlock system, disabled by default
This commit is contained in:
@@ -274,7 +274,15 @@ void MusicWheel::GetSongList(vector<Song*> &arraySongs, SongSortOrder so, CStrin
|
||||
pSong->GetNotes( arraySteps, GAMESTATE->GetCurrentStyleDef()->m_NotesType, DIFFICULTY_INVALID, -1, -1, "", PREFSMAN->m_bAutogenMissingTypes );
|
||||
|
||||
if( !arraySteps.empty() )
|
||||
{
|
||||
// If we're using unlocks, check it here to prevent from being shown
|
||||
if( PREFSMAN->m_bUseUnlockSystem )
|
||||
{
|
||||
pSong->m_bIsLocked = GAMESTATE->UnlockingSys.SongIsLocked( pSong->m_sMainTitle );
|
||||
if( pSong->m_bIsLocked ) { continue; }
|
||||
}
|
||||
arraySongs.push_back( pSong );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user