From 9a68042e42e81780817fa4dbba20f17faea19c9d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 29 Jan 2004 05:23:31 +0000 Subject: [PATCH] fix warnings --- stepmania/src/BGAnimation.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ); }