fix background layers not processing broadcasts

This commit is contained in:
Glenn Maynard
2005-10-16 02:11:25 +00:00
parent acc9bfa5a4
commit 130cbb882a
+20
View File
@@ -70,6 +70,7 @@ public:
virtual void LoadFromSong( const Song *pSong );
virtual void Unload();
virtual void ProcessMessages( float fDeltaTime );
virtual void Update( float fDeltaTime );
virtual void DrawPrimitives();
@@ -104,6 +105,7 @@ protected:
int FindBGSegmentForBeat( float fBeat ) const;
void UpdateCurBGChange( const Song *pSong, float fLastMusicSeconds, float fCurrentTime, const map<CString,BackgroundTransition> &mapNameToTransition );
void ProcessMessages( float fDeltaTime );
map<BackgroundDef,Actor*> m_BGAnimations;
vector<BackgroundChange> m_aBGChanges;
@@ -844,6 +846,14 @@ void BackgroundImpl::Layer::UpdateCurBGChange( const Song *pSong, float fLastMus
m_pFadingBGA->Update( fDeltaTimeMusicRate );
}
void BackgroundImpl::Layer::ProcessMessages( float fDeltaTime )
{
if( m_pCurrentBGA )
m_pCurrentBGA->ProcessMessages( fDeltaTime );
if( m_pFadingBGA )
m_pFadingBGA->ProcessMessages( fDeltaTime );
}
void BackgroundImpl::Update( float fDeltaTime )
{
ActorFrame::Update( fDeltaTime );
@@ -877,6 +887,16 @@ void BackgroundImpl::Update( float fDeltaTime )
m_fLastMusicSeconds = GAMESTATE->m_fMusicSeconds;
}
void BackgroundImpl::ProcessMessages( float fDeltaTime )
{
ActorFrame::ProcessMessages( fDeltaTime );
FOREACH_BackgroundLayer( i )
{
Layer &layer = m_Layer[i];
layer.ProcessMessages( fDeltaTime );
}
}
void BackgroundImpl::DrawPrimitives()
{
if( PREFSMAN->m_fBGBrightness == 0.0f )