remove MAXFLOAT define

This commit is contained in:
Campbell Barton
2014-08-14 10:36:07 +10:00
parent 14d9e46977
commit 28054d8e38
5 changed files with 9 additions and 14 deletions

View File

@@ -34,7 +34,7 @@ ChunkOrder::ChunkOrder()
void ChunkOrder::determineDistance(ChunkOrderHotspot **hotspots, unsigned int numberOfHotspots)
{
unsigned int index;
double distance = MAXFLOAT;
double distance = FLT_MAX;
for (index = 0; index < numberOfHotspots; index++) {
ChunkOrderHotspot *hotspot = hotspots[index];
double ndistance = hotspot->determineDistance(this->m_x, this->m_y);