- fixed a couple of fixes from the previous commit

This commit is contained in:
Rachael Alexanderson 2017-11-21 05:20:02 -05:00
commit 47e9975e90
2 changed files with 2 additions and 2 deletions

View file

@ -938,7 +938,7 @@ int FGLRenderer::PTM_BestColor (const uint32_t *pal_in, int r, int g, int b, int
static bool firstTime = true;
static float trackpowtable = 0.;
double fbestdist = (double)(1<<53), fdist;
double fbestdist = DBL_MAX, fdist;
int bestcolor = 0;
if (firstTime || trackpowtable != gl_paltonemap_powtable)