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

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

commit f6cc629054f0c1a4627304b9b52044323a42f451
Author: krzys-h <[email protected]>
Date:   Thu May 18 18:32:22 2017 +0200

    Log correct terrain relief resolution
---
 src/graphics/engine/terrain.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/graphics/engine/terrain.cpp b/src/graphics/engine/terrain.cpp
index 7ff2417..8467b86 100644
--- a/src/graphics/engine/terrain.cpp
+++ b/src/graphics/engine/terrain.cpp
@@ -229,7 +229,7 @@ bool CTerrain::LoadResources(const std::string& fileName)
 
     if ( (data->surface->w != size) || (data->surface->h != size) )
     {
-        GetLogger()->Error("Invalid resource file\n");
+        GetLogger()->Error("Invalid resource file! Expected %dx%d\n", size, 
size);
         return false;
     }
 
@@ -311,10 +311,11 @@ bool CTerrain::LoadRelief(const std::string &fileName, 
float scaleRelief,
     ImageData *data = img.GetData();
 
     int size = (m_mosaicCount*m_brickCount)+1;
+    GetLogger()->Debug("Expected relief size for current terrain configuration 
is %dx%d\n", size, size);
 
     if ( (data->surface->w != size) || (data->surface->h != size) )
     {
-        GetLogger()->Error("Invalid relief file!\n");
+        GetLogger()->Error("Invalid relief file! Expected %dx%d\n", size, 
size);
         return false;
     }
 

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

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

Reply via email to