diff --git a/src/MeasureInfo.cpp b/src/MeasureInfo.cpp index ff3035d95b..7f0704415d 100644 --- a/src/MeasureInfo.cpp +++ b/src/MeasureInfo.cpp @@ -13,7 +13,7 @@ RString MeasureInfo::ToString() const std::vector asMeasureInfo; for (unsigned i = 0; i < npsPerMeasure.size(); i++) { - asMeasureInfo.push_back(ssprintf("%.6f", npsPerMeasure[i])); + asMeasureInfo.push_back(ssprintf("%.3f", npsPerMeasure[i])); } for (unsigned i = 0; i < notesPerMeasure.size(); i++) diff --git a/src/NotesWriterSSC.cpp b/src/NotesWriterSSC.cpp index 34406cba9e..7b16b694b9 100644 --- a/src/NotesWriterSSC.cpp +++ b/src/NotesWriterSSC.cpp @@ -446,7 +446,8 @@ static RString GetSSCNoteData( const Song &song, const Steps &in, bool bSavingCa const MeasureInfo &ms = in.GetMeasureInfo(pn); asMeasureInfo.push_back(ms.ToString()); } - lines.push_back(ssprintf("#MEASUREINFO:%s;", join("|", asMeasureInfo).c_str())); + RString allMeasureInfo = "#MEASUREINFO:" + join("|", asMeasureInfo) + ";"; + lines.push_back(allMeasureInfo); // NOTE(MV): #STEPFILENAME has to be at the end of the cache tags, // because it's used in SSCLoader::LoadFromSimfile to determine when