don't pick autogen Courses for a BGA random course banner

don't pick DISPLAY_NEVER songs for demonstration
don't pick DISPLAY_NEVER songs for a BGA random song banner
don't show DISPLAY_NEVER songs on the ranking screen
This commit is contained in:
Chris Danford
2004-07-25 21:56:19 +00:00
parent 655855cd70
commit f47e16ca86
6 changed files with 35 additions and 6 deletions
+4 -2
View File
@@ -11,6 +11,7 @@
#include "Steps.h"
#include "ScreenAttract.h"
#include "RageUtil.h"
#include "UnlockSystem.h"
// HACK: This belongs in ScreenDemonstration
#define DIFFICULTIES_TO_SHOW THEME->GetMetric ("ScreenDemonstration","DifficultiesToShow")
@@ -69,8 +70,9 @@ bool ScreenJukebox::SetSong( bool bDemonstration )
if( !pSong->HasMusic() )
continue; // skip
if( pSong->NeverDisplayed() )
if( UNLOCKMAN->SongIsLocked(pSong) )
continue;
if( !pSong->ShowInDemonstrationAndRanking() )
continue; // skip
Difficulty dc = vDifficultiesToShow[ rand()%vDifficultiesToShow.size() ];