Skip to content

Commit

Permalink
Fix incorrect comparision
Browse files Browse the repository at this point in the history
  • Loading branch information
375gnu committed Apr 21, 2018
1 parent dba2514 commit 99bcc73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/celengine/render.cpp
Original file line number Diff line number Diff line change
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 99bcc73

Please sign in to comment.