fix FadingBanner when scrolling is on (scrolling was being reset

during the fade)
This commit is contained in:
Glenn Maynard
2002-12-16 07:33:32 +00:00
parent 12f88d0384
commit 6045fb0dd8
3 changed files with 13 additions and 4 deletions
+9
View File
@@ -53,6 +53,15 @@ void Banner::Update( float fDeltaTime )
}
}
void Banner::SetScrolling( bool bScroll, float Percent)
{
m_bScrolling = bScroll;
m_fPercentScrolling = Percent;
/* Set up the texture coord rects for the current state. */
Update(0);
}
bool Banner::LoadFromSong( Song* pSong ) // NULL means no song
{
m_bScrolling = false;