fix "Steps in Catalog.xml aren't ordered by StepsType/Difficulty"

This commit is contained in:
Chris Danford
2004-08-19 04:19:48 +00:00
parent 505b357616
commit 80191a95cc
+7 -6
View File
@@ -53,13 +53,13 @@ void SaveCatalogXml()
pSongNode->AppendChild( "MainTitle", pSong->GetDisplayMainTitle() ); pSongNode->AppendChild( "MainTitle", pSong->GetDisplayMainTitle() );
pSongNode->AppendChild( "SubTitle", pSong->GetDisplaySubTitle() ); pSongNode->AppendChild( "SubTitle", pSong->GetDisplaySubTitle() );
vector<Steps*> vpSteps = pSong->GetAllSteps(); FOREACH_StepsType( st )
for( unsigned j=0; j<vpSteps.size(); j++ )
{ {
Steps* pSteps = vpSteps[j]; FOREACH_Difficulty( dc )
{
if( pSteps->IsAutogen() ) Steps* pSteps = pSong->GetStepsByDifficulty( st, dc, false ); // no autogen
continue; if( pSteps == NULL )
continue; // skip
StepsID stepsID; StepsID stepsID;
stepsID.FromSteps( pSteps ); stepsID.FromSteps( pSteps );
@@ -71,6 +71,7 @@ void SaveCatalogXml()
pStepsIDNode->AppendChild( pSteps->GetRadarValues().CreateNode() ); pStepsIDNode->AppendChild( pSteps->GetRadarValues().CreateNode() );
} }
} }
}
vector<Course*> vpCourses; vector<Course*> vpCourses;