From 768409d4797f8fbcfe92992849cc08aa879d3d40 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 20 Jul 2005 22:19:14 +0000 Subject: [PATCH] simplify --- stepmania/src/ScreenEdit.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index 60c2d72c3f..247e46cff4 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -1819,6 +1819,12 @@ void ScreenEdit::TransitionEditState( EditState em ) /* Give a 1 secord lead-in. If we're loading Player, this must be done first. */ float fSeconds = m_pSong->m_Timing.GetElapsedTimeFromBeat( NoteRowToBeat(m_iStartPlayingAt) ) - 1; GAMESTATE->UpdateSongPosition( fSeconds, m_pSong->m_Timing ); + + GAMESTATE->m_bPastHereWeGo = true; + + /* Reset the note skin, in case preferences have changed. */ + GAMESTATE->ResetNoteSkins(); + break; } @@ -1828,11 +1834,6 @@ void ScreenEdit::TransitionEditState( EditState em ) { m_sprOverlay->PlayCommand( "Play" ); - GAMESTATE->m_bPastHereWeGo = true; - - /* Reset the note skin, in case preferences have changed. */ - GAMESTATE->ResetNoteSkins(); - /* If we're in course display mode, set that up. */ SetupCourseAttacks(); @@ -1861,10 +1862,6 @@ void ScreenEdit::TransitionEditState( EditState em ) case STATE_RECORDING: { m_sprOverlay->PlayCommand( "Record" ); - GAMESTATE->m_bPastHereWeGo = true; - - /* Reset the note skin, in case preferences have changed. */ - GAMESTATE->ResetNoteSkins(); // initialize m_NoteFieldRecord m_NoteDataRecord.CopyAll( m_NoteDataEdit );