From 17422a5c43ade33de59891d11186a8ae59c22100 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 22 Feb 2004 21:10:18 +0000 Subject: [PATCH] don't output scores for hidden/locked songs --- stepmania/src/ProfileHtml.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/ProfileHtml.cpp b/stepmania/src/ProfileHtml.cpp index c0234d5092..b75949d596 100644 --- a/stepmania/src/ProfileHtml.cpp +++ b/stepmania/src/ProfileHtml.cpp @@ -23,6 +23,7 @@ #include "Bookkeeper.h" #include "PrefsManager.h" #include "CryptManager.h" +#include "UnlockSystem.h" #include "RageUtil.h" @@ -609,6 +610,8 @@ void PrintHighScoreListTable( RageFile &f, const HighScoreList& hsl ) bool PrintHighScoresForSong( RageFile &f, const Profile *pProfile, Song* pSong ) { + if( pSong->m_SelectionDisplay == Song::SHOW_NEVER || UNLOCKMAN->SongIsLocked(pSong) ) + return false; // skip int iNumTimesPlayed = pProfile->GetSongNumTimesPlayed(pSong); if( iNumTimesPlayed == 0 ) return false; // skip @@ -754,6 +757,9 @@ void PrintGradeTable( RageFile &f, const Profile *pProfile, CString sTitle, vect bool PrintInventoryForSong( RageFile &f, const Profile *pProfile, Song* pSong ) { + if( pSong->m_SelectionDisplay == Song::SHOW_NEVER || UNLOCKMAN->SongIsLocked(pSong) ) + return false; // skip + vector vpSteps = pSong->GetAllSteps(); PRINT_OPEN(f, pSong->GetFullDisplayTitle().c_str() );