From 61c42c4481273729948534e593388bebfa99e2aa Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 21 Jul 2005 20:41:26 +0000 Subject: [PATCH] simplify --- stepmania/src/ScreenEdit.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index 3e9d80a48c..f1ef4632f8 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -1804,20 +1804,11 @@ void ScreenEdit::TransitionEditState( EditState em ) GAMESTATE->m_fSongBeat = max( GAMESTATE->m_fSongBeat, 0 ); break; - case STATE_RECORDING: - break; + case STATE_PLAYING: + case STATE_RECORDING: GAMESTATE->ResetOriginalSyncData(); - break; - default: - ASSERT(0); - } - - switch( em ) - { - case STATE_PLAYING: - case STATE_RECORDING: /* Stop displaying course attacks, if any, and return to the player's defaults. */ GAMESTATE->RemoveAllActiveAttacks(); GAMESTATE->m_pPlayerState[PLAYER_1]->RebuildPlayerOptionsFromActiveAttacks(); @@ -1835,6 +1826,8 @@ void ScreenEdit::TransitionEditState( EditState em ) GAMESTATE->ResetNoteSkins(); break; + default: + ASSERT(0); } switch( em )