From f37d58e02fc16604eb2660a608899aa7f514adc3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 13 Jun 2003 23:18:25 +0000 Subject: [PATCH] use colons in #DISPLAYBPM; that's what the reading code did, anyway, and it's more consistent --- stepmania/src/NotesLoaderSM.cpp | 2 +- stepmania/src/NotesWriterSM.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/NotesLoaderSM.cpp b/stepmania/src/NotesLoaderSM.cpp index de9e5a3863..cf0a934cf9 100644 --- a/stepmania/src/NotesLoaderSM.cpp +++ b/stepmania/src/NotesLoaderSM.cpp @@ -149,7 +149,7 @@ bool SMLoader::LoadFromSMFile( CString sPath, Song &out ) else if( 0==stricmp(sValueName,"DISPLAYBPM") ) { - // #DISPLAYBPM:[xxx,xxx]|[xxx]|[*]; + // #DISPLAYBPM:[xxx][xxx:xxx]|[*]; if( sParams[1] == "*" ) out.m_DisplayBPMType = Song::DISPLAY_RANDOM; else diff --git a/stepmania/src/NotesWriterSM.cpp b/stepmania/src/NotesWriterSM.cpp index f2b399a409..f86cb584f4 100644 --- a/stepmania/src/NotesWriterSM.cpp +++ b/stepmania/src/NotesWriterSM.cpp @@ -45,7 +45,7 @@ void NotesWriterSM::WriteGlobalTags(FILE *fp, const Song &out) if( out.m_fDisplayBPMMin == out.m_fDisplayBPMMax ) fprintf( fp, "#DISPLAYBPM:%.3f;\n", out.m_fDisplayBPMMin ); else - fprintf( fp, "#DISPLAYBPM:%.3f,%.3f;\n", out.m_fDisplayBPMMin, out.m_fDisplayBPMMax ); + fprintf( fp, "#DISPLAYBPM:%.3f:%.3f;\n", out.m_fDisplayBPMMin, out.m_fDisplayBPMMax ); break; case Song::DISPLAY_RANDOM: fprintf( fp, "#DISPLAYBPM:*;\n" );