[sm130attacks -> sm130futures] Bringing it in.

Help will be needed to make Song Attacks work by default.

Yes, that means I want no activated attacks to mean DQ.
This commit is contained in:
Jason Felds
2011-05-05 13:48:04 -04:00
5 changed files with 23 additions and 7 deletions
+13
View File
@@ -134,6 +134,19 @@ static void WriteGlobalTags( RageFile &f, const Song &out )
}
}
f.PutLine( ";" );
f.Write( "#ATTACKS:" );
for( unsigned j = 0; j < out.m_Attacks.size(); j++ )
{
const Attack &a = out.m_Attacks[j];
f.Write( ssprintf( "TIME=%.2f:LEN=%.2f:MODS=%s",
a.fStartSecond, a.fSecsRemaining, a.sModifiers.c_str() ) );
if( j+1 < out.m_Attacks.size() )
f.Write( ":" );
f.PutLine( "" );
}
f.PutLine( ";" );
f.Write( "#DELAYS:" );
for( unsigned i=0; i<out.m_Timing.m_StopSegments.size(); i++ )