Always generate smNoteData from parsed data, to ensure consistent string representation of stepchart
This commit is contained in:
+5
-1
@@ -842,9 +842,13 @@ RString Steps::MinimizedChartString()
|
|||||||
// StepMania will always generate the former since quarter notes are
|
// StepMania will always generate the former since quarter notes are
|
||||||
// the smallest quantization.
|
// the smallest quantization.
|
||||||
|
|
||||||
|
// Instead of calling GetSMNoteData(), call NoteDataUtil::GetSMNoteDataString()
|
||||||
|
// to ensure that we have a consistent, valid stepchart representation.
|
||||||
RString smNoteData = "";
|
RString smNoteData = "";
|
||||||
|
NoteData noteData;
|
||||||
|
this->GetNoteData(noteData);
|
||||||
|
NoteDataUtil::GetSMNoteDataString( noteData, smNoteData );
|
||||||
|
|
||||||
this->GetSMNoteData(smNoteData);
|
|
||||||
if( smNoteData == "")
|
if( smNoteData == "")
|
||||||
{
|
{
|
||||||
return "";
|
return "";
|
||||||
|
|||||||
Reference in New Issue
Block a user