diff --git a/stepmania/src/BGAnimation.cpp b/stepmania/src/BGAnimation.cpp index 5ac8ce473f..7bddce401a 100644 --- a/stepmania/src/BGAnimation.cpp +++ b/stepmania/src/BGAnimation.cpp @@ -219,6 +219,12 @@ float BGAnimation::GetTweenTimeLeft() const return tot; } +void BGAnimation::FinishTweening() +{ + for( unsigned i=0; iFinishTweening(); +} + void BGAnimation::PlayCommand( const CString &cmd ) { for( unsigned i=0; i m_Layers; diff --git a/stepmania/src/BGAnimationLayer.cpp b/stepmania/src/BGAnimationLayer.cpp index dfc34e61e2..622c74c5f9 100644 --- a/stepmania/src/BGAnimationLayer.cpp +++ b/stepmania/src/BGAnimationLayer.cpp @@ -640,6 +640,12 @@ float BGAnimationLayer::GetMaxTweenTimeLeft() const return ret; } +void BGAnimationLayer::FinishTweening() +{ + for( unsigned i=0; iFinishTweening(); +} + void BGAnimationLayer::Update( float fDeltaTime ) { fDeltaTime *= m_fUpdateRate; diff --git a/stepmania/src/BGAnimationLayer.h b/stepmania/src/BGAnimationLayer.h index 9b1d45f7ff..e537235f72 100644 --- a/stepmania/src/BGAnimationLayer.h +++ b/stepmania/src/BGAnimationLayer.h @@ -36,6 +36,7 @@ public: void SetDiffuse( RageColor c ); float GetMaxTweenTimeLeft() const; + void FinishTweening(); void GainingFocus( float fRate, bool bRewindMovie, bool bLoop ); void LosingFocus();