From b2b3a806250a317bfb9467682a0e6288a8b585b9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 27 Mar 2005 18:55:26 +0000 Subject: [PATCH] fix queued commands ending up in m_current, causing all future tweens to inherit it --- stepmania/src/Actor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index a0da41898c..27c638ad5b 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -386,6 +386,10 @@ void Actor::UpdateTweening( float fDeltaTime ) if( TI.m_fTimeLeftInTween == 0 ) // Current tween is over. Stop. { m_current = TS; + + // don't inherit the queued state's command. We keep having to do this. + // Does sCommandName belong in TweenInfo, instead of TweenState? + m_current.sCommandName = ""; // delete the head tween m_Tweens.pop_front();