play commands even if not switching backgrounds. This is useful for short "flash" BGAs that play a few times in a row with nothing else in-between.
This commit is contained in:
@@ -760,9 +760,11 @@ void BackgroundImpl::Layer::UpdateCurBGChange( const Song *pSong, float fLastMus
|
|||||||
m_pFadingBGA->RunCommands( *bt.cmdRoot );
|
m_pFadingBGA->RunCommands( *bt.cmdRoot );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_pCurrentBGA->Reset();
|
m_pCurrentBGA->Reset();
|
||||||
m_pCurrentBGA->SetUpdateRate( change.m_fRate );
|
m_pCurrentBGA->SetUpdateRate( change.m_fRate );
|
||||||
|
m_pCurrentBGA->PlayCommand( "Init" );
|
||||||
m_pCurrentBGA->PlayCommand( "On" );
|
m_pCurrentBGA->PlayCommand( "On" );
|
||||||
m_pCurrentBGA->PlayCommand( "GainFocus" );
|
m_pCurrentBGA->PlayCommand( "GainFocus" );
|
||||||
|
|
||||||
@@ -774,7 +776,6 @@ void BackgroundImpl::Layer::UpdateCurBGChange( const Song *pSong, float fLastMus
|
|||||||
/* This is affected by the music rate. */
|
/* This is affected by the music rate. */
|
||||||
fDeltaTime = fCurrentTime - fStartSecond;
|
fDeltaTime = fCurrentTime - fStartSecond;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if( m_pFadingBGA )
|
if( m_pFadingBGA )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user