From 7b9f4830b41cd2ad25738e20aa4eb4e8d8545f1d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 14 Jul 2003 23:53:57 +0000 Subject: [PATCH] Fix banners fading out and in after changing sort --- stepmania/src/FadingBanner.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stepmania/src/FadingBanner.cpp b/stepmania/src/FadingBanner.cpp index f1a5dbb2c5..350b30c4aa 100644 --- a/stepmania/src/FadingBanner.cpp +++ b/stepmania/src/FadingBanner.cpp @@ -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 = "";