Fixed some ugliness in Extra Stage

This commit is contained in:
Chris Danford committed 2002-10-08 23:39:18 +00:00
1 parent 36ef379d37
commit 3bcab1d53f
7 files changed
+30 -18

No files matched your search

+4 -5
View File
@@ -483,16 +483,15 @@ void SongManager::InitCoursesFromDisk()
for( g=0; g<saGroupNames.GetSize(); g++ ) // foreach Group
{
CString sGroupName = saGroupNames[g];
CStringArray saCourseFiles;
GetDirListing( "Songs\\" + sGroupName + "\\*.crs", saCourseFiles );
for( int i=0; i<saCourseFiles.GetSize(); i++ )
CStringArray saCoursePaths;
GetDirListing( "Songs\\" + sGroupName + "\\*.crs", saCoursePaths, false, true );
for( int i=0; i<saCoursePaths.GetSize(); i++ )
{
Course course;
course.LoadFromCRSFile( "Songs\\" + sGroupName + "\\" + saCourseFiles[i], m_pSongs );
course.LoadFromCRSFile( saCoursePaths[i], m_pSongs );
if( course.m_iStages > 0 )
m_aExtraCourses.Add( course );
}
}