optimize
This commit is contained in:
@@ -38,6 +38,10 @@ void SaveCatalogXml()
|
|||||||
xml.name = "Catalog";
|
xml.name = "Catalog";
|
||||||
|
|
||||||
{
|
{
|
||||||
|
bool ShowStepsType[NUM_STEPS_TYPES];
|
||||||
|
FOREACH_StepsType( st )
|
||||||
|
ShowStepsType[st] = SHOW_STEPS_TYPE( st );
|
||||||
|
|
||||||
XNode* pNode = xml.AppendChild( "Songs" );
|
XNode* pNode = xml.AppendChild( "Songs" );
|
||||||
|
|
||||||
vector<Song*> vpSongs = SONGMAN->GetAllSongs();
|
vector<Song*> vpSongs = SONGMAN->GetAllSongs();
|
||||||
@@ -63,7 +67,7 @@ void SaveCatalogXml()
|
|||||||
|
|
||||||
FOREACH_StepsType( st )
|
FOREACH_StepsType( st )
|
||||||
{
|
{
|
||||||
if( !SHOW_STEPS_TYPE(st) )
|
if( !ShowStepsType[st] )
|
||||||
continue; // skip
|
continue; // skip
|
||||||
|
|
||||||
for( set<Difficulty>::const_iterator iter = vDiffs.begin(); iter != vDiffs.end(); iter++ )
|
for( set<Difficulty>::const_iterator iter = vDiffs.begin(); iter != vDiffs.end(); iter++ )
|
||||||
|
|||||||
Reference in New Issue
Block a user