From 48a691534dae14a34d0ee125895034d7b65615a0 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 3 Feb 2006 06:06:34 +0000 Subject: [PATCH] cleanup --- stepmania/src/ScreenOptions.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stepmania/src/ScreenOptions.cpp b/stepmania/src/ScreenOptions.cpp index 9d8f89e596..712379f6c1 100644 --- a/stepmania/src/ScreenOptions.cpp +++ b/stepmania/src/ScreenOptions.cpp @@ -1160,17 +1160,17 @@ bool ScreenOptions::MoveRowRelative( PlayerNumber pn, int iDir, bool bRepeat ) // // Update m_iCurrentRow. // - int r = m_iCurrentRow[p] + iDir; - if( bRepeat && ( r == -1 || r == (int) m_pRows.size() ) ) + int iRow = m_iCurrentRow[p] + iDir; + if( bRepeat && ( iRow == -1 || iRow == (int) m_pRows.size() ) ) continue; // don't wrap while repeating - wrap( r, m_pRows.size() ); + wrap( iRow, m_pRows.size() ); - if( m_iCurrentRow[p] == r ) + if( m_iCurrentRow[p] == iRow ) continue; - m_iCurrentRow[p] = r; - ASSERT( r >= 0 && r < (int)m_pRows.size() ); + m_iCurrentRow[p] = iRow; + ASSERT( iRow >= 0 && iRow < (int)m_pRows.size() ); AfterChangeRow( p ); bChanged = true;