From c484f63266d25744a55ae425aac21d78cbb48547 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 10 Jan 2005 06:23:04 +0000 Subject: [PATCH] fix "hold note ends incorrect after Turn" fix AV in SuperShuffle --- stepmania/src/NoteDataUtil.cpp | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/stepmania/src/NoteDataUtil.cpp b/stepmania/src/NoteDataUtil.cpp index 1ffb9a43b0..53aa747ca7 100644 --- a/stepmania/src/NoteDataUtil.cpp +++ b/stepmania/src/NoteDataUtil.cpp @@ -751,6 +751,9 @@ static void GetTrackMapping( StepsType st, NoteDataUtil::TrackMapping tt, int Nu static void SuperShuffleTaps( NoteData &inout, int iStartIndex, int iEndIndex ) { + // convertTo4s before calling this + ASSERT( inout.GetNumHoldNotes() == 0 ); + /* We already did the normal shuffling code above, which did a good job * of shuffling HoldNotes without creating impossible patterns. * Now, go in and shuffle the TapNotes per-row. @@ -761,16 +764,16 @@ static void SuperShuffleTaps( NoteData &inout, int iStartIndex, int iEndIndex ) { for( int t1=0; t1