Skip to content

Commit

Permalink
Fix compilation warnings, part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
375gnu committed Apr 21, 2018
1 parent dba2514 commit a0f3a40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/celengine/render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4623,7 +4623,7 @@ void Renderer::renderEllipsoidAtmosphere(const Atmosphere& atmosphere,
float height = atmosphere.height / radius;
Vector3f recipSemiAxes = semiAxes.cwiseInverse();

Vector3f recipAtmSemiAxes = recipSemiAxes / (1.0f + height);
/*Vector3f recipAtmSemiAxes = */recipSemiAxes / (1.0f + height);
// ellipDist is not the true distance from the surface unless the
// planet is spherical. Computing the true distance requires finding
// the roots of a sixth degree polynomial, and isn't actually what we
Expand Down Expand Up @@ -7662,7 +7662,7 @@ void Renderer::renderPlanet(Body& body,


// Add ring shadow records for each light
if (body.getRings() && ShowRingShadows)
if (body.getRings() && (renderFlags & ShowRingShadows) != 0)
{
for (unsigned int li = 0; li < lights.nLights; li++)
{
Expand Down

0 comments on commit a0f3a40

Please sign in to comment.