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
+4 -1
View File
@@ -282,7 +282,10 @@ RageTextureID BannerCache::LoadCachedBanner( RString sBannerPath )
if( g_BannerPathToImage.find(sBannerPath) == g_BannerPathToImage.end() )
{
/* Oops, the image is missing. Warn and continue. */
LOG->Warn( "Banner cache for '%s' wasn't loaded", sBannerPath.c_str() );
if(PREFSMAN->m_BannerCache != BNCACHE_OFF)
{
LOG->Warn( "Banner cache for '%s' wasn't loaded", sBannerPath.c_str() );
}
return ID;
}