diff --git a/stepmania/src/BGAnimationLayer.cpp b/stepmania/src/BGAnimationLayer.cpp index b8399e77e8..092f17c663 100644 --- a/stepmania/src/BGAnimationLayer.cpp +++ b/stepmania/src/BGAnimationLayer.cpp @@ -26,23 +26,6 @@ const float SPIRAL_MIN_ZOOM = 0.3f; BGAnimationLayer::BGAnimationLayer() { - Init(); -} - -BGAnimationLayer::~BGAnimationLayer() -{ - Unload(); -} - -void BGAnimationLayer::Unload() -{ - ActorFrame::DeleteAllChildren(); -} - -void BGAnimationLayer::Init() -{ - Unload(); - m_fUpdateRate = 1; m_fFOV = -1; // no change m_bLighting = false; @@ -64,6 +47,11 @@ void BGAnimationLayer::Init() m_fTileVelocityY = 0; } +BGAnimationLayer::~BGAnimationLayer() +{ + ActorFrame::DeleteAllChildren(); +} + void BGAnimationLayer::LoadFromAniLayerFile( const CString& sPath ) { /* Generic BGAs are new. Animation directories with no INI are old and obsolete. diff --git a/stepmania/src/BGAnimationLayer.h b/stepmania/src/BGAnimationLayer.h index f6ed7a37ec..c584b893b8 100644 --- a/stepmania/src/BGAnimationLayer.h +++ b/stepmania/src/BGAnimationLayer.h @@ -14,8 +14,6 @@ class BGAnimationLayer : public ActorFrame public: BGAnimationLayer(); ~BGAnimationLayer(); - void Init(); - void Unload(); void LoadFromAniLayerFile( const CString& sPath ); void LoadFromNode( const CString& sDir, const XNode* pNode );