From 7f17ae1b42c0231a804ce7d6c9f173fb2b1d1dcb Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 17 Mar 2003 01:34:12 +0000 Subject: [PATCH] add BGAnimationLayer::GetMaxTweenTimeLeft this isn't an overload of GetTweenTimeLeft, since it returns the tween time of its children, which is separate from its own tween time --- stepmania/src/BGAnimationLayer.cpp | 10 ++++++++++ stepmania/src/BGAnimationLayer.h | 1 + 2 files changed, 11 insertions(+) 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();