Allow setting Stops and Delays on the same row.

This commit is contained in:
Jason Felds
2011-03-04 22:12:08 -05:00
parent 25ce296a96
commit 9b07d1f392
+2 -2
View File
@@ -81,10 +81,10 @@ void TimingData::SetStopAtRow( int iRow, float fSeconds, bool bDelay )
{ {
unsigned i; unsigned i;
for( i=0; i<m_StopSegments.size(); i++ ) for( i=0; i<m_StopSegments.size(); i++ )
if( m_StopSegments[i].m_iStartRow == iRow ) if( m_StopSegments[i].m_iStartRow == iRow && m_StopSegments[i].m_bDelay == bDelay )
break; break;
if( i == m_StopSegments.size() ) // there is no StopSegment at the current beat if( i == m_StopSegments.size() ) // there is no Stop/Delay Segment at the current beat
{ {
// create a new StopSegment // create a new StopSegment
if( fSeconds > 0 || PREFSMAN->m_bQuirksMode ) if( fSeconds > 0 || PREFSMAN->m_bQuirksMode )