From 5d0386a7bc6da4383f25054982951aecfd684f1f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 25 Apr 2005 09:18:02 +0000 Subject: [PATCH] add NoteDataUtil::ChangeRollsToHolds --- stepmania/src/NoteDataUtil.cpp | 15 +++++++++++++++ stepmania/src/NoteDataUtil.h | 1 + 2 files changed, 16 insertions(+) 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 );