Fix OnCommand being played twice when song BGA layers first gain focus

This commit is contained in:
Glenn Maynard
2004-07-12 21:25:43 +00:00
parent bf19190d61
commit f3a2ec066f
+3
View File
@@ -993,7 +993,10 @@ void BGAnimationLayer::GainingFocus( float fRate, bool bRewindMovie, bool bLoop
m_SubActors[0]->Command( ssprintf("rate,%f",fRate) ); m_SubActors[0]->Command( ssprintf("rate,%f",fRate) );
if( m_fRepeatCommandEverySeconds == -1 ) // if not repeating if( m_fRepeatCommandEverySeconds == -1 ) // if not repeating
{
StopTweening();
PlayCommand( "On" ); PlayCommand( "On" );
}
} }
void BGAnimationLayer::LosingFocus() void BGAnimationLayer::LosingFocus()