From 6d7865eb3eaacd941efcb01916dad8b4d0895a1a Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 13 Feb 2004 08:15:05 +0000 Subject: [PATCH] fix sign warnings --- stepmania/src/ScreenSelect.cpp | 71 +++++++++++++++++++--------------- 1 file changed, 40 insertions(+), 31 deletions(-) diff --git a/stepmania/src/ScreenSelect.cpp b/stepmania/src/ScreenSelect.cpp index f2b695dde1..e24da67e6f 100644 --- a/stepmania/src/ScreenSelect.cpp +++ b/stepmania/src/ScreenSelect.cpp @@ -44,45 +44,54 @@ ScreenSelect::ScreenSelect( CString sClassName ) : Screen(sClassName) m_sName = sClassName; - // Instead of using NUM_CHOICES, use a comma-separated list of choices. Each - // element in the list is a choice name. This level of indirection - // makes it easier to add or remove items without having to change a bunch - // of indices. - CStringArray asChoiceNames; - split( CHOICE_NAMES, ",", asChoiceNames, true ); - - int c; - for( c=0; cGetPathTo(BGAnimations, m_sName, mc.m_sName, true); // true="optional" - if( sBGAnimationDir == "" ) - sBGAnimationDir = THEME->GetPathToB(m_sName+" background"); - BGAnimation *pBGA = new BGAnimation; - m_vpBGAnimations.push_back( pBGA ); + for( unsigned c=0; cGetPathTo(BGAnimations, m_sName, mc.m_sName, true); // true="optional" + if( sBGAnimationDir == "" ) + sBGAnimationDir = THEME->GetPathToB(m_sName+" background"); + BGAnimation *pBGA = new BGAnimation; + m_vpBGAnimations.push_back( pBGA ); + } } m_Menu.Load( sClassName ); this->AddChild( &m_Menu ); - for( c=0; cTrace( "ScreenSelect::~ScreenSelect()" ); - for( int i=0; i