repositioned MenuElements "play sound on first update" hack inside of Transition where it belongs

This commit is contained in:
Chris Danford
2003-04-13 06:29:02 +00:00
parent 82199383a8
commit 85c9e8a89e
10 changed files with 44 additions and 22 deletions
+1 -9
View File
@@ -94,19 +94,11 @@ void MenuElements::Load( CString sClassName, bool bEnableTimer, bool bLoadStyleI
m_soundBack.Load( THEME->GetPathToS("Common back") );
m_bStartedTransitionIn = false;
m_In.StartTransitioning();
}
void MenuElements::Update( float fDeltaTime )
{
if(!m_bStartedTransitionIn)
{
/* Start the transition on the first update, not in the ctor, so
* we don't play a sound while our parent is still loading. */
m_bStartedTransitionIn = true;
m_In.StartTransitioning( SM_None );
}
ActorFrame::Update(fDeltaTime);
}