use float.h and limit.h constants instead of arbitrary large numbers

This commit is contained in:
Chris Danford
2005-03-25 20:01:51 +00:00
parent 50bd3a493c
commit bb6592a4e7
12 changed files with 30 additions and 19 deletions
+2 -1
View File
@@ -4,6 +4,7 @@
#include "RageUtil.h"
#include "RageLog.h"
#include "NoteTypes.h"
#include <float.h>
void BPMSegment::SetBPM( float f )
{
@@ -42,7 +43,7 @@ void SortStopSegmentsArray( vector<StopSegment> &arrayStopSegments )
void TimingData::GetActualBPM( float &fMinBPMOut, float &fMaxBPMOut ) const
{
fMinBPMOut = 99999;
fMinBPMOut = FLT_MAX;
fMaxBPMOut = 0;
for( unsigned i=0; i<m_BPMSegments.size(); i++ )
{