cleanups, fix memleaks

This commit is contained in:
Glenn Maynard
2004-01-24 22:55:59 +00:00
parent 4bec346b2c
commit ec5d3282bf
4 changed files with 39 additions and 79 deletions
+2 -15
View File
@@ -53,13 +53,6 @@ ScreenSelectGroup::ScreenSelectGroup( CString sClassName ) : Screen( sClassName
unsigned i;
int j;
// The new process by which the group and song lists are formed
// is bizarre and complex but yields the end result that songs
// and groups that do not contain any steps for the current
// style (such as solo) are omitted. Bear with me!
// -- dro kulix
vector<Song*> aAllSongs;
SONGMAN->GetSongs( aAllSongs );
@@ -69,14 +62,8 @@ ScreenSelectGroup::ScreenSelectGroup( CString sClassName ) : Screen( sClassName
{
bool DisplaySong = aAllSongs[j]->NormallyDisplayed();
// check if song is locked
if (PREFSMAN->m_bUseUnlockSystem)
{
UnlockEntry* m_UnlockSong = UNLOCKSYS->FindSong( aAllSongs[j] );
if (m_UnlockSong)
DisplaySong = (m_UnlockSong->SelectableWheel());
}
if( UNLOCKSYS->SongIsLocked( aAllSongs[j] ) )
DisplaySong = false;
if( aAllSongs[j]->SongCompleteForStyle(GAMESTATE->GetCurrentStyleDef()) &&
DisplaySong )