From 45c50c854ddb158b07ca8807dc689ae1590e118e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 26 Sep 2005 19:34:07 +0000 Subject: [PATCH] BGAnimation is no longer used for scrollers; use XML. --- stepmania/src/BGAnimation.cpp | 7 +------ stepmania/src/BGAnimation.h | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/stepmania/src/BGAnimation.cpp b/stepmania/src/BGAnimation.cpp index b960a2f069..b52ee68ced 100644 --- a/stepmania/src/BGAnimation.cpp +++ b/stepmania/src/BGAnimation.cpp @@ -149,12 +149,7 @@ void BGAnimation::LoadFromAniDir( const CString &_sAniDir ) void BGAnimation::LoadFromNode( const CString& sDir, const XNode* pNode ) { - bool bUseScroller = false; - pNode->GetAttrValue( "UseScroller", bUseScroller ); - if( bUseScroller ) - ActorScrollerAutoDeleteChildren::LoadFromNode( sDir, pNode ); - else - ActorFrame::LoadFromNode( sDir, pNode ); + ActorFrame::LoadFromNode( sDir, pNode ); /* Backwards-compatibility: if a "LengthSeconds" value is present, create a dummy * actor that sleeps for the given length of time. This will extend GetTweenTimeLeft. */ diff --git a/stepmania/src/BGAnimation.h b/stepmania/src/BGAnimation.h index 2a1b2e39e9..79675a4046 100644 --- a/stepmania/src/BGAnimation.h +++ b/stepmania/src/BGAnimation.h @@ -3,11 +3,11 @@ #ifndef BGANIMATION_H #define BGANIMATION_H -#include "ActorScroller.h" +#include "ActorFrame.h" struct XNode; -class BGAnimation : public ActorScrollerAutoDeleteChildren +class BGAnimation : public ActorFrameAutoDeleteChildren { public: BGAnimation();