Make Convert2sAnd3sToHoldNotes delete 2s and 3s.
This commit is contained in:
@@ -623,6 +623,11 @@ void NoteData::MakeLittle()
|
|||||||
/* ConvertHoldNotesTo2sAnd3s also clears m_iNumHoldNotes;
|
/* ConvertHoldNotesTo2sAnd3s also clears m_iNumHoldNotes;
|
||||||
* shouldn't this do likewise and set all 2/3's to 0?
|
* shouldn't this do likewise and set all 2/3's to 0?
|
||||||
* -glenn
|
* -glenn
|
||||||
|
*
|
||||||
|
* Other code assumes != '0' means there's a tap note, so I changed
|
||||||
|
* this to do this. -glenn
|
||||||
|
*
|
||||||
|
|
||||||
*/
|
*/
|
||||||
void NoteData::Convert2sAnd3sToHoldNotes()
|
void NoteData::Convert2sAnd3sToHoldNotes()
|
||||||
{
|
{
|
||||||
@@ -635,6 +640,7 @@ void NoteData::Convert2sAnd3sToHoldNotes()
|
|||||||
{
|
{
|
||||||
if( m_TapNotes[col][i] != '2' ) // this is a HoldNote begin marker
|
if( m_TapNotes[col][i] != '2' ) // this is a HoldNote begin marker
|
||||||
continue;
|
continue;
|
||||||
|
m_TapNotes[col][i] = '0';
|
||||||
|
|
||||||
for( int j=i+1; j<MAX_TAP_NOTE_ROWS; j++ ) // search for end of HoldNote
|
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' )
|
if( m_TapNotes[col][j] == '0' )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
m_TapNotes[col][j] = '0';
|
||||||
|
|
||||||
HoldNote hn = { col, NoteRowToBeat(i), NoteRowToBeat(j) };
|
HoldNote hn = { col, NoteRowToBeat(i), NoteRowToBeat(j) };
|
||||||
AddHoldNote( hn );
|
AddHoldNote( hn );
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user