diff --git a/stepmania/src/BGAnimation.cpp b/stepmania/src/BGAnimation.cpp index 8506a21316..a92e15b82a 100644 --- a/stepmania/src/BGAnimation.cpp +++ b/stepmania/src/BGAnimation.cpp @@ -118,6 +118,8 @@ void BGAnimation::LoadFromAniDir( CString sAniDir ) if( !ini.GetValue( "BGAnimation", "LengthSeconds", m_fLengthSeconds ) ) { m_fLengthSeconds = 0; + /* XXX: if m_bGeneric, simply constructing the BG layer won't run "On", + * so at this point GetMaxTweenTimeLeft is probably 0 */ for( int i=0; (unsigned)i < m_Layers.size(); i++ ) m_fLengthSeconds = max(m_fLengthSeconds, m_Layers[i]->GetMaxTweenTimeLeft()); } @@ -140,8 +142,8 @@ void BGAnimation::LoadFromAniDir( CString sAniDir ) m_Scroller.Load( fScrollSecondsPerItem, fSpacingX, fSpacingY ); for( unsigned i=0; iAddChild( &m_Scroller ); }