From 7338fa18d7d33c5e1e7b6f3177b2b28b78381ad3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 19 Mar 2005 05:25:58 +0000 Subject: [PATCH] move some code that's migrated away from where it's used; cleanup --- stepmania/src/ScreenEdit.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index 4b9c402dd1..9098a8b719 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -524,14 +524,9 @@ void ScreenEdit::Init() m_pSteps = GAMESTATE->m_pCurSteps[PLAYER_1]; m_pAttacksFromCourse = NULL; - NoteData noteData; - m_pSteps->GetNoteData( noteData ); - GAMESTATE->m_bPastHereWeGo = false; - GAMESTATE->m_bEditing = true; - GAMESTATE->m_fSongBeat = 0; m_fTrailingBeat = GAMESTATE->m_fSongBeat; @@ -557,6 +552,8 @@ void ScreenEdit::Init() m_SnapDisplay.SetZoom( 0.5f ); this->AddChild( &m_SnapDisplay ); + NoteData noteData; + m_pSteps->GetNoteData( noteData ); m_NoteDataEdit.CopyAll( noteData ); m_NoteFieldEdit.SetXY( EDIT_X, PLAYER_Y ); @@ -566,7 +563,6 @@ void ScreenEdit::Init() this->AddChild( &m_NoteFieldEdit ); m_NoteDataRecord.CopyAll( noteData ); - m_NoteFieldRecord.SetXY( EDIT_X, PLAYER_Y ); m_NoteFieldRecord.Init( GAMESTATE->m_pPlayerState[PLAYER_1], 350 ); m_NoteFieldRecord.Load( &m_NoteDataRecord, -150, 350 );