From 60f0a7b45c94d86923e6dd9a8218822b910ba502 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski <piotrdz@gmail.com> Date: Sat, 22 Aug 2015 18:17:57 +0200 Subject: [PATCH] Get rid of "blacklisting shadowXX.png" logs --- src/graphics/engine/engine.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/graphics/engine/engine.cpp b/src/graphics/engine/engine.cpp index f3e0d988..67831ea7 100644 --- a/src/graphics/engine/engine.cpp +++ b/src/graphics/engine/engine.cpp @@ -59,7 +59,7 @@ #include "ui/controls/interface.h" #include <iomanip> -#include <SDL_thread.h> +#include <boost/algorithm/string/predicate.hpp> template<> Gfx::CEngine* CSingleton<Gfx::CEngine>::m_instance = nullptr; @@ -2317,7 +2317,12 @@ bool CEngine::LoadAllTextures() if (! p2.tex2Name.empty()) { if (terrain) - p2.tex2 = LoadTexture("textures/"+p2.tex2Name, m_terrainTexParams); + { + if (! boost::starts_with(p2.tex2Name, "shadow")) // shadow ground textures are created dynamically + { + p2.tex2 = LoadTexture("textures/"+p2.tex2Name, m_terrainTexParams); + } + } else p2.tex2 = LoadTexture("textures/"+p2.tex2Name);