#BGCHANGES1 -> #BGCHANGES2

This commit is contained in:
Chris Danford
2005-06-05 03:14:56 +00:00
parent 73167283a3
commit d6753dd5f7
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -337,6 +337,7 @@ bool SMLoader::LoadFromSMFile( CString sPath, Song &out )
{
BackgroundLayer iLayer = BACKGROUND_LAYER_1;
sscanf( sValueName, "BGCHANGES%d", &iLayer );
iLayer = (BackgroundLayer)(iLayer-1);
if( iLayer < 0 && iLayer >= NUM_BackgroundLayer )
{
+1 -1
View File
@@ -103,7 +103,7 @@ void NotesWriterSM::WriteGlobalTags( RageFile &f, const Song &out )
else if( out.GetBackgroundChanges(b).empty() )
continue; // skip
else
f.Write( ssprintf("#BGCHANGES%d:", b) );
f.Write( ssprintf("#BGCHANGES%d:", b+1) );
FOREACH_CONST( BackgroundChange, out.GetBackgroundChanges(b), bgc )
f.PutLine( BackgroundChangeToString(*bgc) );