This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository colobot.

commit 9870cfe8a882af9318b00635a16bc55bc876875e
Author: tomangelo2 <tomang...@wp.pl>
Date:   Mon May 2 01:27:07 2016 +0200

    Clamp FogStart value to 0 if negative
    
    Should fix issue #766
---
 src/graphics/engine/engine.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/graphics/engine/engine.cpp b/src/graphics/engine/engine.cpp
index 8b0b40e..aeb6dcb 100644
--- a/src/graphics/engine/engine.cpp
+++ b/src/graphics/engine/engine.cpp
@@ -2733,7 +2733,10 @@ float CEngine::GetDeepView(int rank)
 
 void CEngine::SetFogStart(float start, int rank)
 {
-    m_fogStart[rank] = start;
+    if (start < 0.0f)
+        m_fogStart[rank] = 0.0f;
+    else
+        m_fogStart[rank] = start;
 }
 
 float CEngine::GetFogStart(int rank)

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/colobot.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to