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:
Chris Danford
2005-06-05 03:18:09 +00:00
parent ab794ffb2d
commit afec93797f
+2 -1
View File
@@ -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 )
{ {