From d581f8b4c51bef67d44b43b917dba6c6141361d9 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Mon, 27 Feb 2012 13:42:15 -0500 Subject: [PATCH] [cleanNoteData] Typo fix and simplification. No need for the switch if we're only acting on one value. --- src/ScreenEdit.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/ScreenEdit.cpp b/src/ScreenEdit.cpp index d2bd2c7a4d..402af4c1c6 100644 --- a/src/ScreenEdit.cpp +++ b/src/ScreenEdit.cpp @@ -791,7 +791,7 @@ static MenuDef g_SongInformation( MenuRowDef(ScreenEdit::min_bpm, "Min BPM", true, EditMode_Full, true, true, 0, NULL ), - MenuRowDef(screenEdit::max_bpm, + MenuRowDef(ScreenEdit::max_bpm, "Max BPM", true, EditMode_Full, true, true, 0, NULL ) ); @@ -1534,14 +1534,8 @@ void ScreenEdit::UpdateTextInfo() sText += SELECTION_BEAT_UNFINISHED_FORMAT; } - switch( EDIT_MODE.GetValue() ) + if (EDIT_MODE.GetValue() == EditMode_Full) { - DEFAULT_FAIL( EDIT_MODE.GetValue() ); - case EditMode_Practice: - case EditMode_CourseMods: - case EditMode_Home: - break; - case EditMode_Full: sText += ssprintf( DIFFICULTY_FORMAT.GetValue(), DIFFICULTY.GetValue().c_str(), DifficultyToString( m_pSteps->GetDifficulty() ).c_str() ); if ( m_InputPlayerNumber != PLAYER_INVALID ) sText += ssprintf( ROUTINE_PLAYER_FORMAT.GetValue(), ROUTINE_PLAYER.GetValue().c_str(), m_InputPlayerNumber + 1 ); @@ -1554,7 +1548,6 @@ void ScreenEdit::UpdateTextInfo() sText += ssprintf( SUBTITLE_FORMAT.GetValue(), SUBTITLE.GetValue().c_str(), m_pSong->m_sSubTitle.c_str() ); sText += ssprintf( SEGMENT_TYPE_FORMAT.GetValue(), SEGMENT_TYPE.GetValue().c_str(), TimingSegmentTypeToString(currentCycleSegment).c_str() ); sText += ssprintf( TAP_NOTE_TYPE_FORMAT.GetValue(), TAP_NOTE_TYPE.GetValue().c_str(), TapNoteTypeToString( m_selectedTap.type ).c_str() ); - break; } GAMESTATE->SetProcessedTimingData(&m_pSteps->m_Timing);