diff options
author | erihel <erihel@gmail.com> | 2013-04-29 14:20:07 +0200 |
---|---|---|
committer | erihel <erihel@gmail.com> | 2013-04-29 14:20:07 +0200 |
commit | 64162a0e6ffd799caddac98b8daa6fa4f31b7d64 (patch) | |
tree | 78ffa751dc56cf0842e0242edb1b2dbb06f98788 /src/graphics | |
parent | 919b0e8114368132c88d95768b43fc17c70b699d (diff) | |
parent | d425e09186cb93d4c873665c87535beb050c3389 (diff) | |
download | colobot-64162a0e6ffd799caddac98b8daa6fa4f31b7d64.tar.gz colobot-64162a0e6ffd799caddac98b8daa6fa4f31b7d64.tar.bz2 colobot-64162a0e6ffd799caddac98b8daa6fa4f31b7d64.zip |
Merge branch 'fix-for-shadows' of https://github.com/xiendev/colobot into xiendev-fix-for-shadows
Diffstat (limited to 'src/graphics')
-rw-r--r-- | src/graphics/engine/engine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics/engine/engine.cpp b/src/graphics/engine/engine.cpp index 274e179..5d77e29 100644 --- a/src/graphics/engine/engine.cpp +++ b/src/graphics/engine/engine.cpp @@ -3651,7 +3651,7 @@ void CEngine::DrawShadow() float lastIntensity = -1.0f; for (int i = 0; i < static_cast<int>( m_shadows.size() ); i++) { - if (m_shadows[i].hide) + if (m_shadows[i].hide || !m_shadows[i].used) continue; Math::Vector pos = m_shadows[i].pos; // pos = center of the shadow on the ground |