Fix banners fading out and in after changing sort

This commit is contained in:
Glenn Maynard
2003-07-14 23:53:57 +00:00
parent 960ecbfda2
commit 7b9f4830b4
+7
View File
@@ -90,6 +90,13 @@ void FadingBanner::BeforeChange()
/* If this returns false, the banner couldn't be loaded. */
void FadingBanner::LoadFromCachedBanner( const CString &path )
{
/* If we're already on the given banner, don't fade again. */
if( m_Banner[GetBackIndex()].GetTexturePath() == path )
return;
/* If we're currently fading to the given banner, go through this again,
* which will cause the fade-in to be further delayed. */
/* No matter what we load, ensure we don't fade to a stale path. */
m_sPendingBanner = "";