Now that I've done all that, I can fix this: don't leave the cursor before

the beginning of the song when escaping from play and edit.
This commit is contained in:
Glenn Maynard
2002-10-18 00:58:21 +00:00
parent a8ed1f80c1
commit 2cef59ffd2
+4
View File
@@ -1398,6 +1398,10 @@ void ScreenEdit::TransitionToEdit()
/* Make sure we're snapped. */
GAMESTATE->m_fSongBeat = froundf( GAMESTATE->m_fSongBeat, NoteTypeToBeat(m_SnapDisplay.GetSnapMode()) );
/* Playing and recording have lead-ins, which may start before beat 0;
* make sure we don't stay there if we escaped out early. */
GAMESTATE->m_fSongBeat = max( GAMESTATE->m_fSongBeat, 0 );
}
void ScreenEdit::TransitionFromRecordToEdit()