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
@@ -34,6 +34,7 @@
#include "LyricsLoader.h"
#include <set>
#include <float.h>
#define CACHE_DIR "Cache/"
@@ -778,7 +779,7 @@ void Song::TranslateTitles()
void Song::ReCalculateRadarValuesAndLastBeat()
{
float fFirstBeat = 999999; /* inf */
float fFirstBeat = FLT_MAX; /* inf */
float fLastBeat = 0;
for( unsigned i=0; i<m_vpSteps.size(); i++ )