summaryrefslogtreecommitdiffstats
path: root/src/graphics/opengl
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2013-06-20 23:14:37 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2013-06-20 23:14:37 +0200
commit28b4e9a63450110978d60de80a9af2e901d49a97 (patch)
tree8a935f0350f695453353155d5efc561b13db9632 /src/graphics/opengl
parent4c33172e173b8f815a367f1e1c0fae06d9051df5 (diff)
downloadcolobot-28b4e9a63450110978d60de80a9af2e901d49a97.tar.gz
colobot-28b4e9a63450110978d60de80a9af2e901d49a97.tar.bz2
colobot-28b4e9a63450110978d60de80a9af2e901d49a97.zip
Fixed terrain light priorities (fix for #139)
* lights illuminating the terrain specified in scene file are now always moved to front of light ordering
Diffstat (limited to 'src/graphics/opengl')
-rw-r--r--src/graphics/opengl/gldevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics/opengl/gldevice.cpp b/src/graphics/opengl/gldevice.cpp
index 534a13f..bbabdd6 100644
--- a/src/graphics/opengl/gldevice.cpp
+++ b/src/graphics/opengl/gldevice.cpp
@@ -92,7 +92,7 @@ void CGLDevice::DebugLights()
m_worldMat.LoadIdentity();
UpdateModelviewMatrix();
- for (int i = 0; i < m_lights.size(); ++i)
+ for (int i = 0; i < static_cast<int>( m_lights.size() ); ++i)
{
color.h = static_cast<float>(i) / static_cast<float>(m_lights.size());
if (m_lightsEnabled[i])