Fix g++ warnings.
This commit is contained in:
+2
-2
@@ -572,8 +572,8 @@ float TimingData::GetElapsedTimeFromBeatNoOffset( float fBeat ) const
|
|||||||
/* A traditional stop has the beat happening before the stop (>=)
|
/* A traditional stop has the beat happening before the stop (>=)
|
||||||
* A Pump delay acts differently. [aj: how?] (>)
|
* A Pump delay acts differently. [aj: how?] (>)
|
||||||
*/
|
*/
|
||||||
if( m_StopSegments[j].m_iStartRow >= iRow && !m_StopSegments[j].m_bDelay ||
|
if( ( m_StopSegments[j].m_iStartRow >= iRow && !m_StopSegments[j].m_bDelay ) ||
|
||||||
m_StopSegments[j].m_iStartRow > iRow && m_StopSegments[j].m_bDelay )
|
( m_StopSegments[j].m_iStartRow > iRow && m_StopSegments[j].m_bDelay ) )
|
||||||
break;
|
break;
|
||||||
fElapsedTime += m_StopSegments[j].m_fStopSeconds;
|
fElapsedTime += m_StopSegments[j].m_fStopSeconds;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -174,7 +174,7 @@ struct StopSegment
|
|||||||
{
|
{
|
||||||
return ( m_iStartRow < other.m_iStartRow ) ||
|
return ( m_iStartRow < other.m_iStartRow ) ||
|
||||||
( m_iStartRow == other.m_iStartRow &&
|
( m_iStartRow == other.m_iStartRow &&
|
||||||
( m_bDelay && !other.m_bDelay || m_fStopSeconds < other.m_fStopSeconds ));
|
( ( m_bDelay && !other.m_bDelay ) || m_fStopSeconds < other.m_fStopSeconds ));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @brief Compares two StopSegments to see if one is less than or equal to the other.
|
* @brief Compares two StopSegments to see if one is less than or equal to the other.
|
||||||
|
|||||||
Reference in New Issue
Block a user