From 84f07b8503ae366abad35867cd4898872d340288 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Sun, 11 Dec 2011 19:30:37 -0500 Subject: [PATCH] Restore segment cycling in the editor. --- Docs/Changelog_sm5.txt | 5 +++++ src/ScreenEdit.cpp | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index 451d6b9628..b491d091bb 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -8,6 +8,11 @@ ________________________________________________________________________________ StepMania 5.0 $next | 20111xxx -------------------------------------------------------------------------------- +2011/12/11 +---------- +* [ScreenEdit] Restore cycling the timing segments for jumping between. + The required line somehow never got replaced. [Wolfman2000] + 2011/11/30 ---------- * [PlayerOptions] Added IsEasierForSongAndSteps(Song,Steps,PlayerNumber) and diff --git a/src/ScreenEdit.cpp b/src/ScreenEdit.cpp index 8caf9b6ea0..40998f0fa2 100644 --- a/src/ScreenEdit.cpp +++ b/src/ScreenEdit.cpp @@ -1571,12 +1571,14 @@ void ScreenEdit::InputEdit( const InputEventPlus &input, EditButton EditB ) { int tmp = enum_add2( this->currentCycleSegment, -1 ); wrap( *ConvertValue(&tmp), NUM_TimingSegmentType ); + currentCycleSegment = (TimingSegmentType)tmp; break; - } + } case EDIT_BUTTON_CYCLE_SEGMENT_RIGHT: { int tmp = enum_add2( this->currentCycleSegment, +1 ); wrap( *ConvertValue(&tmp), NUM_TimingSegmentType ); + currentCycleSegment = (TimingSegmentType)tmp; break; } case EDIT_BUTTON_SCROLL_SPEED_UP: