diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index 16325e0d95..64f42f4ce2 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -341,6 +341,11 @@ void Actor::StopTweening() ASSERT( m_TweenInfo.empty() ); } +void Actor::FinishTweening() +{ + m_current = DestTweenState(); + StopTweening(); +} void Actor::ScaleTo( const RectI &rect, StretchType st ) diff --git a/stepmania/src/Actor.h b/stepmania/src/Actor.h index 30e1463cf2..7c378fae29 100644 --- a/stepmania/src/Actor.h +++ b/stepmania/src/Actor.h @@ -139,6 +139,7 @@ public: virtual void BeginTweening( float time, TweenType tt = TWEEN_LINEAR ); virtual void StopTweening(); + virtual void FinishTweening(); virtual float GetTweenTimeLeft() const; // Amount of time until all tweens have stopped virtual TweenState& DestTweenState() // where Actor will end when its tween finish {