From 0a8899f4d85705b071f5a05e480b642623d93596 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 27 Feb 2004 00:55:25 +0000 Subject: [PATCH] cleanup, fix warnings --- stepmania/src/NoteDataUtil.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/src/NoteDataUtil.cpp b/stepmania/src/NoteDataUtil.cpp index d4c11d84c0..ae9669f5d1 100644 --- a/stepmania/src/NoteDataUtil.cpp +++ b/stepmania/src/NoteDataUtil.cpp @@ -1448,11 +1448,11 @@ void NoteDataUtil::ScaleRegion( NoteData &nd, float fScale, float fStartBeat, fl const int iFirstRowAtEndOfRegion = min( nd.GetLastRow(), BeatToNoteRowNotRounded(fEndBeat) ); const int iScaledFirstRowAfterRegion = (int)((fStartBeat + (fEndBeat - fStartBeat) * fScale) * ROWS_PER_BEAT); - if (fStartBeat != 0) - temp1.CopyRange( &nd, 0, fStartBeat * ROWS_PER_BEAT ); - if (nd.GetLastRow() > iFirstRowAtEndOfRegion) + if( fStartBeat != 0 ) + temp1.CopyRange( &nd, 0, BeatToNoteRowNotRounded(fStartBeat) ); + if( nd.GetLastRow() > iFirstRowAtEndOfRegion ) temp1.CopyRange( &nd, iFirstRowAtEndOfRegion, nd.GetLastRow(), iScaledFirstRowAfterRegion); - temp2.CopyRange( &nd, fStartBeat * ROWS_PER_BEAT, iFirstRowAtEndOfRegion ); + temp2.CopyRange( &nd, BeatToNoteRowNotRounded(fStartBeat), iFirstRowAtEndOfRegion ); nd.ClearAll(); for( int r=0; r<=temp2.GetLastRow(); r++ )