When changing diffs, use seconds, not beats.
This commit is contained in:
@@ -1658,6 +1658,9 @@ void ScreenEdit::InputEdit( const InputEventPlus &input, EditButton EditB )
|
|||||||
// don't keep undo when changing Steps
|
// don't keep undo when changing Steps
|
||||||
ClearUndo();
|
ClearUndo();
|
||||||
|
|
||||||
|
// get the second of the current step.
|
||||||
|
float curSecond = GetAppropriateTiming().GetElapsedTimeFromBeat(GetBeat());
|
||||||
|
|
||||||
// save current steps
|
// save current steps
|
||||||
Steps* pSteps = GAMESTATE->m_pCurSteps[PLAYER_1];
|
Steps* pSteps = GAMESTATE->m_pCurSteps[PLAYER_1];
|
||||||
ASSERT( pSteps );
|
ASSERT( pSteps );
|
||||||
@@ -1710,6 +1713,8 @@ void ScreenEdit::InputEdit( const InputEventPlus &input, EditButton EditB )
|
|||||||
int(vSteps.size()) );
|
int(vSteps.size()) );
|
||||||
SCREENMAN->SystemMessage( s );
|
SCREENMAN->SystemMessage( s );
|
||||||
m_soundSwitchSteps.Play();
|
m_soundSwitchSteps.Play();
|
||||||
|
|
||||||
|
ScrollTo( GetAppropriateTiming().GetBeatFromElapsedTime(curSecond) );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EDIT_BUTTON_BPM_UP:
|
case EDIT_BUTTON_BPM_UP:
|
||||||
|
|||||||
Reference in New Issue
Block a user