From 1f9adc3f68b52693eb900d28d891b8c2d0306c2e Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Sun, 26 Jun 2011 13:36:42 -0400 Subject: [PATCH] When changing diffs, use seconds, not beats. --- src/ScreenEdit.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ScreenEdit.cpp b/src/ScreenEdit.cpp index 47f6448c44..b6af108d6b 100644 --- a/src/ScreenEdit.cpp +++ b/src/ScreenEdit.cpp @@ -1658,6 +1658,9 @@ void ScreenEdit::InputEdit( const InputEventPlus &input, EditButton EditB ) // don't keep undo when changing Steps ClearUndo(); + // get the second of the current step. + float curSecond = GetAppropriateTiming().GetElapsedTimeFromBeat(GetBeat()); + // save current steps Steps* pSteps = GAMESTATE->m_pCurSteps[PLAYER_1]; ASSERT( pSteps ); @@ -1710,6 +1713,8 @@ void ScreenEdit::InputEdit( const InputEventPlus &input, EditButton EditB ) int(vSteps.size()) ); SCREENMAN->SystemMessage( s ); m_soundSwitchSteps.Play(); + + ScrollTo( GetAppropriateTiming().GetBeatFromElapsedTime(curSecond) ); } break; case EDIT_BUTTON_BPM_UP: