don't show unlocks in practice mode

This commit is contained in:
Chris Danford
2005-04-18 23:46:20 +00:00
parent 92e7d97481
commit ba1300dea5
+3 -3
View File
@@ -58,9 +58,8 @@ static void GetSongsToShowForGroup( const CString &sGroup, vector<Song*> &vpSong
{
vpSongsOut.clear();
SONGMAN->GetSongs( vpSongsOut, sGroup );
if( EDIT_MODE == EDIT_MODE_HOME )
if( EDIT_MODE < EDIT_MODE_FULL )
{
// strip groups that have no unlocked songs
for( int i=vpSongsOut.size()-1; i>=0; i-- )
{
const Song* pSong = vpSongsOut[i];
@@ -79,6 +78,7 @@ static void GetGroupsToShow( vector<CString> &vsGroupsOut )
const CString &sGroup = vsGroupsOut[i];
vector<Song*> vpSongs;
GetSongsToShowForGroup( sGroup, vpSongs );
// strip groups that have no unlocked songs
if( vpSongs.empty() )
vsGroupsOut.erase( vsGroupsOut.begin()+i );
}
@@ -345,7 +345,7 @@ void EditMenu::OnRowValueChanged( EditMenuRow row )
}
else
{
// don't show non-edits in HomeMode
// don't allow selecting of non-edits in HomeMode
if( EDIT_MODE == EDIT_MODE_HOME )
continue;