Only warn that the banner wasn't cached if the banner cache pref isn't set to off.
This commit is contained in:
+4
-1
@@ -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. */
|
||||||
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;
|
return ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user