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

odyx pushed a commit to branch upstream/latest
in repository colobot.

commit 4a202a086fd5ca0f2d84bdb3bf7d1e6f7deb84c0
Author: krzys-h <krzy...@interia.pl>
Date:   Wed Aug 6 17:18:52 2014 +0200

    Fixed #314
---
 src/graphics/engine/engine.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/graphics/engine/engine.cpp b/src/graphics/engine/engine.cpp
index d0b37a5..e4bf068 100644
--- a/src/graphics/engine/engine.cpp
+++ b/src/graphics/engine/engine.cpp
@@ -1965,10 +1965,10 @@ bool CEngine::IsWithinLODLimit(float distance, LODLevel 
lodLevel)
         }
 
         min *= m_size.x / 640.0f;
-        min *= m_objectDetail*2.0f;
+        min *= 1.0f+m_objectDetail*2.0f;
 
         max *= m_size.x / 640.0f;
-        max *= m_objectDetail*2.0f;
+        max *= 1.0f+m_objectDetail*2.0f;
     }
 
     return distance >= min && distance < max;

-- 
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