No need to swap if it's the same column.

Still busted, but still stumped.
Doing what I can to optimize.
This commit is contained in:
Jason Felds
2011-05-24 21:29:51 -04:00
parent 2afdaf6705
commit b3cebd2aaf
+4
View File
@@ -2947,6 +2947,10 @@ void Player::RandomizeNotes( int iNoteRow )
const int iSwapWith = RandomInt( iNumOfTracks );
// Make sure we're not swapping with ourselves.
if( t == iSwapWith )
continue;
// Make sure this is empty.
if( m_NoteData.FindTapNote(iSwapWith, iNewNoteRow) != m_NoteData.end(iSwapWith) )
continue;