diff --git a/stepmania/src/NoteDataUtil.cpp b/stepmania/src/NoteDataUtil.cpp index e7df513ac4..e71fae6966 100644 --- a/stepmania/src/NoteDataUtil.cpp +++ b/stepmania/src/NoteDataUtil.cpp @@ -634,6 +634,21 @@ void NoteDataUtil::RemoveHoldNotes( NoteData &in, int iStartIndex, int iEndIndex } } +void NoteDataUtil::ChangeRollsToHolds( NoteData &in, int iStartIndex, int iEndIndex ) +{ + for( int t=0; tsecond.type != TapNote::hold_head || + begin->second.subType != TapNote::hold_head_roll ) + continue; + begin->second.subType != TapNote::hold_head_hold; + } + } +} void NoteDataUtil::RemoveSimultaneousNotes( NoteData &in, int iMaxSimultaneous, int iStartIndex, int iEndIndex ) { diff --git a/stepmania/src/NoteDataUtil.h b/stepmania/src/NoteDataUtil.h index 1f324d5988..f924be2447 100644 --- a/stepmania/src/NoteDataUtil.h +++ b/stepmania/src/NoteDataUtil.h @@ -34,6 +34,7 @@ namespace NoteDataUtil void GetRadarValues( const NoteData &in, float fSongSeconds, RadarValues& out ); void RemoveHoldNotes( NoteData &inout, int iStartIndex = 0, int iEndIndex = MAX_NOTE_ROW ); + void ChangeRollsToHolds( NoteData &in, int iStartIndex, int iEndIndex ); void RemoveSimultaneousNotes( NoteData &inout, int iMaxSimultaneous, int iStartIndex = 0, int iEndIndex = MAX_NOTE_ROW ); void RemoveJumps( NoteData &inout, int iStartIndex = 0, int iEndIndex = MAX_NOTE_ROW ); void RemoveHands( NoteData &inout, int iStartIndex = 0, int iEndIndex = MAX_NOTE_ROW );