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
+1 -1
View File
@@ -19,7 +19,7 @@ int32_t RageSurfacePalette::FindColor( const RageSurfaceColor &color ) const
int32_t RageSurfacePalette::FindClosestColor( const RageSurfaceColor &color ) const
{
int iBest = -1;
int iBestDist = 99999;
int iBestDist = INT_MAX;
for( int i = 0; i < ncolors; ++i )
{
if( colors[i] == color )