fixed issue #223 about disabling shadows/ground textures

dev-mp
Mohamed Waheed 2014-07-12 19:37:34 +00:00
parent 8522232620
commit 117a5289ea
1 changed files with 46 additions and 46 deletions

View File

@ -3124,9 +3124,8 @@ void CEngine::Draw3DScene()
m_app->StartPerformanceCounter(PCNT_RENDER_TERRAIN); m_app->StartPerformanceCounter(PCNT_RENDER_TERRAIN);
// Draw terrain with shadows, if shadows enabled // Draw terrain
if (m_shadowVisible)
{
m_lightMan->UpdateDeviceLights(ENG_OBJTYPE_TERRAIN); m_lightMan->UpdateDeviceLights(ENG_OBJTYPE_TERRAIN);
for (int objRank = 0; objRank < static_cast<int>(m_objects.size()); objRank++) for (int objRank = 0; objRank < static_cast<int>(m_objects.size()); objRank++)
@ -3182,9 +3181,10 @@ void CEngine::Draw3DScene()
} }
} }
// Draws the shadows // Draws the shadows , if shadows enabled
if (m_shadowVisible)
DrawShadow(); DrawShadow();
}
m_app->StopPerformanceCounter(PCNT_RENDER_TERRAIN); m_app->StopPerformanceCounter(PCNT_RENDER_TERRAIN);