remove magic constants

This commit is contained in:
Glenn Maynard
2003-02-19 19:39:31 +00:00
parent acd90363c9
commit c36f2769d9
+2 -2
View File
@@ -929,14 +929,14 @@ void NoteDataUtil::SuperShuffleTaps( NoteData &in )
for( int t1=0; t1<in.GetNumTracks(); t1++ ) for( int t1=0; t1<in.GetNumTracks(); t1++ )
{ {
TapNote tn1 = in.GetTapNote(t1, r); TapNote tn1 = in.GetTapNote(t1, r);
if( tn1!='4' ) // a tap that is not part of a hold if( tn1!=TAP_HOLD ) // a tap that is not part of a hold
{ {
// probe for a spot to swap with // probe for a spot to swap with
while( 1 ) while( 1 )
{ {
int t2 = rand() % in.GetNumTracks(); int t2 = rand() % in.GetNumTracks();
TapNote tn2 = in.GetTapNote(t2, r); TapNote tn2 = in.GetTapNote(t2, r);
if( tn2!='4' ) // a tap that is not part of a hold if( tn2!=TAP_HOLD ) // a tap that is not part of a hold
{ {
// swap // swap
in.SetTapNote(t1, r, tn2); in.SetTapNote(t1, r, tn2);