From 28b4e9a63450110978d60de80a9af2e901d49a97 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Thu, 20 Jun 2013 23:14:37 +0200 Subject: Fixed terrain light priorities (fix for #139) * lights illuminating the terrain specified in scene file are now always moved to front of light ordering --- src/graphics/opengl/gldevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/graphics/opengl') 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( m_lights.size() ); ++i) { color.h = static_cast(i) / static_cast(m_lights.size()); if (m_lightsEnabled[i]) -- cgit v1.2.3-1-g7c22