Only warn that the banner wasn't cached if the banner cache pref isn't set to off.

This commit is contained in:
Kyzentun Keeslala
2015-11-01 12:04:32 -07:00
parent e6aa840af4
commit 37b1030dd4
+3
View File
@@ -282,7 +282,10 @@ RageTextureID BannerCache::LoadCachedBanner( RString sBannerPath )
if( g_BannerPathToImage.find(sBannerPath) == g_BannerPathToImage.end() ) if( g_BannerPathToImage.find(sBannerPath) == g_BannerPathToImage.end() )
{ {
/* Oops, the image is missing. Warn and continue. */ /* Oops, the image is missing. Warn and continue. */
if(PREFSMAN->m_BannerCache != BNCACHE_OFF)
{
LOG->Warn( "Banner cache for '%s' wasn't loaded", sBannerPath.c_str() ); LOG->Warn( "Banner cache for '%s' wasn't loaded", sBannerPath.c_str() );
}
return ID; return ID;
} }