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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user