fix "Steps in Catalog.xml aren't ordered by StepsType/Difficulty"
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user