fix background layers not processing broadcasts
This commit is contained in:
@@ -70,6 +70,7 @@ public:
|
|||||||
|
|
||||||
virtual void LoadFromSong( const Song *pSong );
|
virtual void LoadFromSong( const Song *pSong );
|
||||||
virtual void Unload();
|
virtual void Unload();
|
||||||
|
virtual void ProcessMessages( float fDeltaTime );
|
||||||
|
|
||||||
virtual void Update( float fDeltaTime );
|
virtual void Update( float fDeltaTime );
|
||||||
virtual void DrawPrimitives();
|
virtual void DrawPrimitives();
|
||||||
@@ -104,6 +105,7 @@ protected:
|
|||||||
|
|
||||||
int FindBGSegmentForBeat( float fBeat ) const;
|
int FindBGSegmentForBeat( float fBeat ) const;
|
||||||
void UpdateCurBGChange( const Song *pSong, float fLastMusicSeconds, float fCurrentTime, const map<CString,BackgroundTransition> &mapNameToTransition );
|
void UpdateCurBGChange( const Song *pSong, float fLastMusicSeconds, float fCurrentTime, const map<CString,BackgroundTransition> &mapNameToTransition );
|
||||||
|
void ProcessMessages( float fDeltaTime );
|
||||||
|
|
||||||
map<BackgroundDef,Actor*> m_BGAnimations;
|
map<BackgroundDef,Actor*> m_BGAnimations;
|
||||||
vector<BackgroundChange> m_aBGChanges;
|
vector<BackgroundChange> m_aBGChanges;
|
||||||
@@ -844,6 +846,14 @@ void BackgroundImpl::Layer::UpdateCurBGChange( const Song *pSong, float fLastMus
|
|||||||
m_pFadingBGA->Update( fDeltaTimeMusicRate );
|
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 )
|
void BackgroundImpl::Update( float fDeltaTime )
|
||||||
{
|
{
|
||||||
ActorFrame::Update( fDeltaTime );
|
ActorFrame::Update( fDeltaTime );
|
||||||
@@ -877,6 +887,16 @@ void BackgroundImpl::Update( float fDeltaTime )
|
|||||||
m_fLastMusicSeconds = GAMESTATE->m_fMusicSeconds;
|
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()
|
void BackgroundImpl::DrawPrimitives()
|
||||||
{
|
{
|
||||||
if( PREFSMAN->m_fBGBrightness == 0.0f )
|
if( PREFSMAN->m_fBGBrightness == 0.0f )
|
||||||
|
|||||||
Reference in New Issue
Block a user