aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRealBadAngel <maciej.kasatkin@o2.pl>2014-05-05 12:37:12 +0200
committerRealBadAngel <maciej.kasatkin@o2.pl>2014-05-05 19:25:18 +0200
commitc80d67f48e2011c88bbb9e755ee4f5e7f5391f63 (patch)
treea030475e07434a7eddcf12e7bf554622a0bf2287 /src
parent6f511b1d05d3e1668967a528b77a9e81e31b3c78 (diff)
downloadminetest-c80d67f48e2011c88bbb9e755ee4f5e7f5391f63.tar.gz
minetest-c80d67f48e2011c88bbb9e755ee4f5e7f5391f63.tar.bz2
minetest-c80d67f48e2011c88bbb9e755ee4f5e7f5391f63.zip
Move message about missing normal maps to infostream instead of errorstream.
Diffstat (limited to 'src')
-rw-r--r--src/tile.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/tile.cpp b/src/tile.cpp
index 78aa4d946..cff45dc76 100644
--- a/src/tile.cpp
+++ b/src/tile.cpp
@@ -973,13 +973,19 @@ bool TextureSource::generateImage(std::string part_of_name, video::IImage *& bas
}
}
- if(image == NULL)
- {
- if(part_of_name != ""){
- errorstream<<"generateImage(): Could not load image \""
+ if (image == NULL) {
+ if (part_of_name != "") {
+ if (part_of_name.find("_normal.png") == std::string::npos){
+ errorstream<<"generateImage(): Could not load image \""
<<part_of_name<<"\""<<" while building texture"<<std::endl;
- errorstream<<"generateImage(): Creating a dummy"
+ errorstream<<"generateImage(): Creating a dummy"
<<" image for \""<<part_of_name<<"\""<<std::endl;
+ } else {
+ infostream<<"generateImage(): Could not load normal map \""
+ <<part_of_name<<"\""<<std::endl;
+ infostream<<"generateImage(): Creating a dummy"
+ <<" normal map for \""<<part_of_name<<"\""<<std::endl;
+ }
}
// Just create a dummy image