cleanup, comment

This commit is contained in:
AJ Kelly
2011-03-02 14:41:59 -06:00
parent e6f9c503dd
commit 26227213dc
+3 -2
View File
@@ -742,6 +742,7 @@ void ScreenEdit::Init()
m_SnapDisplay.SetXY( EDIT_X, PLAYER_Y_STANDARD ); m_SnapDisplay.SetXY( EDIT_X, PLAYER_Y_STANDARD );
m_SnapDisplay.Load( PLAYER_1 ); m_SnapDisplay.Load( PLAYER_1 );
// xxx: hardcoded command -aj
m_SnapDisplay.SetZoom( 0.5f ); m_SnapDisplay.SetZoom( 0.5f );
this->AddChild( &m_SnapDisplay ); this->AddChild( &m_SnapDisplay );
@@ -2349,10 +2350,10 @@ void ScreenEdit::TransitionEditState( EditState em )
m_Background.Unload(); m_Background.Unload();
m_Foreground.Unload(); m_Foreground.Unload();
/* Restore the cursor position. */ // Restore the cursor position.
GAMESTATE->m_fSongBeat = m_fBeatToReturnTo; GAMESTATE->m_fSongBeat = m_fBeatToReturnTo;
/* Make sure we're snapped. */ // Make sure we're snapped.
GAMESTATE->m_fSongBeat = Quantize( GAMESTATE->m_fSongBeat, NoteTypeToBeat(m_SnapDisplay.GetNoteType()) ); GAMESTATE->m_fSongBeat = Quantize( GAMESTATE->m_fSongBeat, NoteTypeToBeat(m_SnapDisplay.GetNoteType()) );
/* Playing and recording have lead-ins, which may start before beat 0; /* Playing and recording have lead-ins, which may start before beat 0;