From 1b7fbd69d60652a8c2d392cd9329f17396e0f5f5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 8 Nov 2004 07:14:47 +0000 Subject: [PATCH] unneeded now --- stepmania/src/Player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index 69b3991d79..e3f70d136e 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -602,14 +602,14 @@ int PlayerMinus::GetClosestNoteDirectional( int col, int iStartRow, int iMaxRows while( abs(iStartRow-iRow) <= iMaxRowsAhead ) { /* Is iRow the row we want? */ - for(;;) + do { if( m_NoteData.GetTapNote(col, iRow).type == TapNote::empty ) break; if( !bAllowGraded && m_NoteData.GetTapNoteScore(col, iRow) != TNS_NONE ) break; return iRow; - } + } while(0); if( bForward && !m_NoteData.GetNextTapNoteRowForTrack( col, iRow ) ) return -1;