m_vpBGAnimations hasn't actually done anything in about a year (it's

never loaded); remove it.  It's not useful, anyway: it gives no means to
tween options when changing the selection.
This commit is contained in:
Glenn Maynard
2005-01-15 18:50:52 +00:00
parent 29b2a6d22f
commit 314e801115
2 changed files with 0 additions and 26 deletions
-24
View File
@@ -53,12 +53,6 @@ ScreenSelect::ScreenSelect( CString sClassName ) :
mc.m_sName = sChoiceName;
mc.Load( c, CHOICE(sChoiceName) );
m_aGameCommands.push_back( mc );
CString sBGAnimationDir = THEME->GetPath(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 );
}
}
@@ -95,9 +89,6 @@ ScreenSelect::ScreenSelect( CString sClassName ) :
ScreenSelect::~ScreenSelect()
{
LOG->Trace( "ScreenSelect::~ScreenSelect()" );
for( unsigned i=0; i<m_vpBGAnimations.size(); i++ )
SAFE_DELETE( m_vpBGAnimations[i] );
m_vpBGAnimations.clear();
}
void ScreenSelect::Update( float fDelta )
@@ -130,25 +121,10 @@ void ScreenSelect::Update( float fDelta )
}
Screen::Update( fDelta );
// GAMESTATE->m_MasterPlayerNumber is set to PLAYER_INVALID when going Back to
// the title screen and this screen is updated after. TODO: find out why
if( GAMESTATE->m_MasterPlayerNumber != PLAYER_INVALID )
{
int iSelection = this->GetSelectionIndex(GAMESTATE->m_MasterPlayerNumber);
m_vpBGAnimations[iSelection]->Update( fDelta );
}
}
void ScreenSelect::DrawPrimitives()
{
// GAMESTATE->m_MasterPlayerNumber is set to PLAYER_INVALID when going Back to
// the title screen and this screen is updated after. TODO: find out why
if( GAMESTATE->m_MasterPlayerNumber != PLAYER_INVALID )
{
int iSelection = this->GetSelectionIndex(GAMESTATE->m_MasterPlayerNumber);
m_vpBGAnimations[iSelection]->Draw();
}
Screen::DrawPrimitives();
}