From c9e0d48774f06d841869dfa47a6db2dd4e6765d0 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 14 Apr 2005 09:32:58 +0000 Subject: [PATCH] make LengthSeconds more predictable: sets the minimum length of the tween after "On" --- stepmania/src/BGAnimation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/BGAnimation.cpp b/stepmania/src/BGAnimation.cpp index 56141c1317..104451a860 100644 --- a/stepmania/src/BGAnimation.cpp +++ b/stepmania/src/BGAnimation.cpp @@ -189,7 +189,8 @@ void BGAnimation::LoadFromNode( const CString& sDir, const XNode* pNode ) { Actor *pActor = new Actor; pActor->SetHidden( true ); - pActor->BeginTweening( fLengthSeconds ); + apActorCommands ap( new ActorCommands(ssprintf("sleep,%f",fLengthSeconds)) ); + pActor->AddCommand( "On", ap ); AddChild( pActor ); } }