Fix condition.

This commit is contained in:
Vincent Lejeune 2014-05-31 22:24:32 +02:00
parent 21317f561f
commit f31e5763d2

View File

@ -940,7 +940,7 @@ void IrrDriver::renderLights(scene::ICameraSceneNode * const camnode, float dt)
if (!m_lights[i]->isPointLight())
{
m_lights[i]->render();
if (World::getWorld()->getTrack()->hasShadows())
if (!World::getWorld()->getTrack()->hasShadows())
continue;
if (UserConfigParams::m_shadows)
m_post_processing->renderShadowedSunlight(sun_ortho_matrix, m_rtts->getShadowDepthTex());