repositioned MenuElements "play sound on first update" hack inside of Transition where it belongs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user