attempt to allow Foreground items to run InitCommand

This commit is contained in:
AJ Kelly
2011-03-16 16:35:05 -05:00
parent 89c5a21e90
commit f1395c021c
+2 -1
View File
@@ -37,7 +37,7 @@ void Foreground::LoadFromSong( const Song *pSong )
LoadedBGA bga;
bga.m_bga = ActorUtil::MakeActor( pSong->GetSongDir() + sBGName, this );
bga.m_bga->PlayCommand( "On" );
bga.m_bga->PlayCommand( "Init" );
bga.m_fStartBeat = change.m_fStartBeat;
bga.m_bFinished = false;
@@ -80,6 +80,7 @@ void Foreground::Update( float fDeltaTime )
if( !bga.m_bga->GetVisible() )
{
bga.m_bga->SetVisible( true );
bga.m_bga->PlayCommand( "On" );
const float fStartSecond = m_pSong->m_Timing.GetElapsedTimeFromBeat( bga.m_fStartBeat );
lDeltaTime = GAMESTATE->m_fMusicSeconds - fStartSecond;