fix "corrupted HoldNotes" when using Transforms as attacks

This commit is contained in:
Chris Danford
2003-08-18 04:20:51 +00:00
parent b4befeb3df
commit 5a36244a4e
4 changed files with 27 additions and 18 deletions
+3 -2
View File
@@ -504,6 +504,7 @@ void NoteDataUtil::Wide( NoteData &in, float fStartBeat, float fEndBeat )
in.ConvertHoldNotesTo4s();
int first_row = 0;
if( fStartBeat != -1 )
first_row = BeatToNoteRow(fStartBeat);
@@ -512,7 +513,7 @@ void NoteDataUtil::Wide( NoteData &in, float fStartBeat, float fEndBeat )
if( fEndBeat != -1 )
last_row = BeatToNoteRow(fEndBeat);
for( int i=first_row; i<=last_row; i+=ROWS_PER_BEAT*2 ) // every even beat
for( int i=first_row; i<last_row; i+=ROWS_PER_BEAT*2 ) // every even beat
{
if( in.GetNumTapNonEmptyTracks(i) != 1 )
continue; // skip. Don't place during holds
@@ -586,7 +587,7 @@ void NoteDataUtil::InsertIntelligentTaps( NoteData &in, float fBeatInterval, flo
int rows_per_interval = BeatToNoteRow( fBeatInterval );
int insert_row_offset = BeatToNoteRow( fInsertBeatOffset );
for( int i=first_row; i<=last_row; i+=rows_per_interval )
for( int i=first_row; i<last_row; i+=rows_per_interval )
{
int iRowEarlier = i;
int iRowLater = i + rows_per_interval;