Make Convert2sAnd3sToHoldNotes delete 2s and 3s.

This commit is contained in:
Glenn Maynard
2002-09-06 05:24:59 +00:00
parent 504cc93ac5
commit fa0916e1e0
+8
View File
@@ -623,6 +623,11 @@ void NoteData::MakeLittle()
/* ConvertHoldNotesTo2sAnd3s also clears m_iNumHoldNotes;
* shouldn't this do likewise and set all 2/3's to 0?
* -glenn
*
* Other code assumes != '0' means there's a tap note, so I changed
* this to do this. -glenn
*
*/
void NoteData::Convert2sAnd3sToHoldNotes()
{
@@ -635,6 +640,7 @@ void NoteData::Convert2sAnd3sToHoldNotes()
{
if( m_TapNotes[col][i] != '2' ) // this is a HoldNote begin marker
continue;
m_TapNotes[col][i] = '0';
for( int j=i+1; j<MAX_TAP_NOTE_ROWS; j++ ) // search for end of HoldNote
{
@@ -642,6 +648,8 @@ void NoteData::Convert2sAnd3sToHoldNotes()
if( m_TapNotes[col][j] == '0' )
continue;
m_TapNotes[col][j] = '0';
HoldNote hn = { col, NoteRowToBeat(i), NoteRowToBeat(j) };
AddHoldNote( hn );
break;