diff --git a/stepmania/src/BGAnimationLayer.cpp b/stepmania/src/BGAnimationLayer.cpp index fab9845feb..8ba053f6a9 100644 --- a/stepmania/src/BGAnimationLayer.cpp +++ b/stepmania/src/BGAnimationLayer.cpp @@ -600,6 +600,16 @@ void BGAnimationLayer::LoadFromIni( CString sAniDir, CString sLayer ) } } +float BGAnimationLayer::GetMaxTweenTimeLeft() const +{ + float ret = 0; + + for( unsigned i=0; iGetTweenTimeLeft()); + + return ret; +} + void BGAnimationLayer::Update( float fDeltaTime ) { const float fSongBeat = GAMESTATE->m_fSongBeat; diff --git a/stepmania/src/BGAnimationLayer.h b/stepmania/src/BGAnimationLayer.h index 9a52927e4e..167609f648 100644 --- a/stepmania/src/BGAnimationLayer.h +++ b/stepmania/src/BGAnimationLayer.h @@ -40,6 +40,7 @@ public: virtual void SetDiffuse( RageColor c ); + float GetMaxTweenTimeLeft() const; void GainingFocus(); void LosingFocus();