From f3a2ec066faa0e35418d958d73d081a7c05ba138 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 12 Jul 2004 21:25:43 +0000 Subject: [PATCH] Fix OnCommand being played twice when song BGA layers first gain focus --- stepmania/src/BGAnimationLayer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/BGAnimationLayer.cpp b/stepmania/src/BGAnimationLayer.cpp index 355cb084b5..ae92d2251d 100644 --- a/stepmania/src/BGAnimationLayer.cpp +++ b/stepmania/src/BGAnimationLayer.cpp @@ -993,7 +993,10 @@ void BGAnimationLayer::GainingFocus( float fRate, bool bRewindMovie, bool bLoop m_SubActors[0]->Command( ssprintf("rate,%f",fRate) ); if( m_fRepeatCommandEverySeconds == -1 ) // if not repeating + { + StopTweening(); PlayCommand( "On" ); + } } void BGAnimationLayer::LosingFocus()