#BGCHANGES1 -> #BGCHANGES2
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
@@ -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) );
|
||||
|
||||
Reference in New Issue
Block a user