fix "record empty segment at end doesn't do anything useful"

This commit is contained in:
Glenn Maynard
2005-07-22 04:11:15 +00:00
parent 464bb983ee
commit 9d65ff798d
+7
View File
@@ -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;