small cleanup

This commit is contained in:
AJ Kelly
2010-07-19 11:14:43 -05:00
parent fa8ebadbc9
commit cb041b75d2
+7 -7
View File
@@ -626,21 +626,21 @@ void ScreenSelectMusic::Input( const InputEventPlus &input )
// To allow changing steps with gamebuttons, NOT WITH THE GODDAMN CODEDETECTOR // To allow changing steps with gamebuttons, NOT WITH THE GODDAMN CODEDETECTOR
// yeah, wanted this since a while ago... -DaisuMaster // yeah, wanted this since a while ago... -DaisuMaster
if(CHANGE_STEPS_WITH_GAME_BUTTONS) if( CHANGE_STEPS_WITH_GAME_BUTTONS )
{ {
// avoid anything not being just press (read: release or repeat/hold) // avoid anything not being just press (read: release or repeat/hold)
if(input.type != IET_FIRST_PRESS) if( input.type != IET_FIRST_PRESS )
return; return;
if(m_SelectionState == SelectionState_SelectingSong) if( m_SelectionState == SelectionState_SelectingSong )
{ {
if(input.MenuI == m_GameButtonPreviousDifficulty) if (input.MenuI == m_GameButtonPreviousDifficulty )
{ {
ChangeSteps(input.pn, -1); ChangeSteps( input.pn, -1 );
} }
else if( input.MenuI == m_GameButtonNextDifficulty ) else if( input.MenuI == m_GameButtonNextDifficulty )
{ {
ChangeSteps(input.pn, +1); ChangeSteps( input.pn, +1 );
} }
} }
} }
@@ -743,7 +743,7 @@ bool ScreenSelectMusic::DetectCodes( const InputEventPlus &input )
{ {
if( GAMESTATE->IsAnExtraStageAndSelectionLocked() ) if( GAMESTATE->IsAnExtraStageAndSelectionLocked() )
m_soundLocked.Play(); m_soundLocked.Play();
else else
ChangeSteps( input.pn, +1 ); ChangeSteps( input.pn, +1 );
} }
else if( CodeDetector::EnteredModeMenu(input.GameI.controller) ) else if( CodeDetector::EnteredModeMenu(input.GameI.controller) )