This commit is contained in:
Glenn Maynard
2007-08-13 19:20:40 +00:00
parent 94781be4a5
commit 6653a64354
+6 -6
View File
@@ -591,27 +591,27 @@ int SongManager::GetNumUnlockedSongs() const
int SongManager::GetNumSelectableAndUnlockedSongs() const int SongManager::GetNumSelectableAndUnlockedSongs() const
{ {
int num = 0; int iNum = 0;
FOREACH_CONST( Song*, m_pSongs, i ) FOREACH_CONST( Song*, m_pSongs, i )
{ {
if( UNLOCKMAN->SongIsLocked( *i ) ) if( UNLOCKMAN->SongIsLocked( *i ) )
continue; continue;
if( (*i)->GetDisplayed() != Song::SHOW_ALWAYS ) if( (*i)->GetDisplayed() != Song::SHOW_ALWAYS )
continue; continue;
num++; iNum++;
} }
return num; return iNum;
} }
int SongManager::GetNumAdditionalSongs() const int SongManager::GetNumAdditionalSongs() const
{ {
int num = 0; int iNum = 0;
FOREACH_CONST( Song*, m_pSongs, i ) FOREACH_CONST( Song*, m_pSongs, i )
{ {
if( WasLoadedFromAdditionalSongs( *i ) ) if( WasLoadedFromAdditionalSongs( *i ) )
num++; iNum++;
} }
return num; return iNum;
} }
int SongManager::GetNumSongGroups() const int SongManager::GetNumSongGroups() const