It wasn't there! I modified the wrong place!

This commit is contained in:
Thai Pangsakulyanont
2011-03-01 16:52:59 +07:00
parent 265c511a60
commit 0575e73b1e
-29
View File
@@ -682,35 +682,6 @@ void NoteData::LoadTransformed( const NoteData& in, int iNewNumTracks, const int
m_TapNotes[t] = in.m_TapNotes[iOriginalTrack];
bTransformedTracks[iOriginalTrack] = true;
}
// move uncopied keysound tracks and put them as autokeysound.
// someone please fix this pile of code pyramid
for( int t=0; t<in.GetNumTracks(); t++ )
{
if( !bTransformedTracks[t] )
{
FOREACH_NONEMPTY_ROW_IN_TRACK( in, t, row )
{
TapNote tn = in.GetTapNote( t, row );
if( tn.type == TapNote::autoKeysound || tn.type == TapNote::hold_head || tn.type == TapNote::tap )
{
if( tn.iKeysoundIndex >= 0 )
{
for( int i=0; i<GetNumTracks(); i++ )
{
if ( GetTapNote(i, row) == TAP_EMPTY )
{
tn.type = TapNote::autoKeysound;
tn.subType = TapNote::SubType_Invalid;
SetTapNote( i, row, tn );
break;
}
}
}
}
}
}
}
}
void NoteData::MoveTapNoteTrack( int dest, int src )