fix queued commands ending up in m_current, causing all future tweens to inherit it

This commit is contained in:
Glenn Maynard
2005-03-27 18:55:26 +00:00
parent 30b4967697
commit b2b3a80625
+4
View File
@@ -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();