From 951c6074b0fb2e6154f0ac7fefe82712f0c7343a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 21 Jul 2005 06:48:56 +0000 Subject: [PATCH] cleanup --- stepmania/src/ScreenEdit.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index d0f2227a3f..6abcb859ce 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -1760,14 +1760,17 @@ void ScreenEdit::TransitionEditState( EditState em ) m_soundAssistTick.StopPlaying(); GAMESTATE->m_bPastHereWeGo = false; - // If exiting EDIT mode, save the cursor position. - if( old == STATE_EDITING ) - m_fBeatToReturnTo = GAMESTATE->m_fSongBeat; - - if( old == STATE_PLAYING ) + switch( old ) { + case STATE_EDITING: + // If exiting EDIT mode, save the cursor position. + m_fBeatToReturnTo = GAMESTATE->m_fSongBeat; + break; + + case STATE_PLAYING: if( GAMESTATE->IsSyncDataChanged() ) SCREENMAN->AddNewScreenToTop( "ScreenSaveSync" ); + break; } switch( em )