Skip to content

Commit

Permalink
- fixed a few of the more obvious logic errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachael Alexanderson committed Nov 21, 2017
1 parent 5532266 commit 2bc86b5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gl/renderer/gl_postprocess.cpp
Expand Up @@ -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, fdist;
double fbestdist = (double)(1<<53), fdist;
int bestcolor = 0;

if (firstTime || trackpowtable != gl_paltonemap_powtable)
Expand Down
1 change: 1 addition & 0 deletions src/vectors.h
Expand Up @@ -651,6 +651,7 @@ struct TVector3
TVector3 &operator ^= (const TVector3 &other)
{
*this = *this ^ other;
return *this;
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/win32/fb_d3d9.cpp
Expand Up @@ -1223,7 +1223,7 @@ void D3DFB::Flip()
{
RECT 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);

Expand Down

0 comments on commit 2bc86b5

Please sign in to comment.