- fixed a few of the more obvious logic errors

This commit is contained in:
Rachael Alexanderson 2017-11-21 04:05:47 -05:00
parent 5532266b14
commit 2bc86b52c8
3 changed files with 3 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 bool firstTime = true;
static float trackpowtable = 0.; static float trackpowtable = 0.;
double fbestdist, fdist; double fbestdist = (double)(1<<53), fdist;
int bestcolor = 0; int bestcolor = 0;
if (firstTime || trackpowtable != gl_paltonemap_powtable) if (firstTime || trackpowtable != gl_paltonemap_powtable)

View File

@ -651,6 +651,7 @@ struct TVector3
TVector3 &operator ^= (const TVector3 &other) TVector3 &operator ^= (const TVector3 &other)
{ {
*this = *this ^ other; *this = *this ^ other;
return *this;
} }
}; };

View File

@ -1223,7 +1223,7 @@ void D3DFB::Flip()
{ {
RECT box; RECT box;
GetClientRect(Window, &box); GetClientRect(Window, &box);
if (box.right > 0 && box.right > 0 && (Width != box.right || Height != box.bottom)) if (box.right > 0 && (Width != box.right || Height != box.bottom))
{ {
Resize(box.right, box.bottom); Resize(box.right, box.bottom);