diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index a6d56f8901..a851f78a7b 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -1613,9 +1613,16 @@ void ScreenEdit::InputEdit( const DeviceInput& DeviceI, const InputEventType typ m_iStartPlayingAt = BeatToNoteRow( ftruncf(GAMESTATE->m_fSongBeat, g_iDefaultRecordLength.Get()) ); m_iStopPlayingAt = m_iStartPlayingAt + BeatToNoteRow( g_iDefaultRecordLength.Get() ); } + if( GAMESTATE->m_pCurSteps[0]->IsAnEdit() ) m_iStopPlayingAt = min( m_iStopPlayingAt, BeatToNoteRow(GetMaximumBeatForNewNote()) ); + if( m_iStartPlayingAt >= m_iStopPlayingAt ) + { + SCREENMAN->PlayInvalidSound(); + return; + } + TransitionEditState( STATE_RECORDING ); } break;