no message

This commit is contained in:
Chris Danford
2002-02-25 08:54:10 +00:00
parent af970dd91f
commit 61e76f51ad
+6 -1
View File
@@ -772,8 +772,13 @@ void Song::SaveOffsetChangeToDisk()
CString sLine = arrayLines[i];
if( -1 != sLine.Find("#GAP") )
{
// Discover whether the GAP line has a semicolon at the end.
// If it doesn't then the semicolon is probably on the next line
// and we don't want to write a second semicolon!
bool bHasSemiColon = -1 != sLine.Find(";");
// replace with new offset
fileOut.WriteString( ssprintf("#GAP:%d;\n", roundf(GetBeatOffsetInSeconds()*-1*1000)) );
fileOut.WriteString( ssprintf("#GAP:%d%s\n", roundf(GetBeatOffsetInSeconds()*-1*1000), bHasSemiColon ? ";" : "") );
}
else
{