From f1395c021c446e02f8fa9aa61b5aebbd640ba598 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Wed, 16 Mar 2011 16:35:05 -0500 Subject: [PATCH] attempt to allow Foreground items to run InitCommand --- src/Foreground.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Foreground.cpp b/src/Foreground.cpp index 4e75cd0b79..aa34e4a891 100644 --- a/src/Foreground.cpp +++ b/src/Foreground.cpp @@ -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;