remove BGAnimation::Unload
This commit is contained in:
@@ -16,11 +16,6 @@ BGAnimation::BGAnimation()
|
||||
}
|
||||
|
||||
BGAnimation::~BGAnimation()
|
||||
{
|
||||
Unload();
|
||||
}
|
||||
|
||||
void BGAnimation::Unload()
|
||||
{
|
||||
DeleteAllChildren();
|
||||
}
|
||||
@@ -106,7 +101,7 @@ void BGAnimation::AddLayersFromAniDir( const CString &_sAniDir, const IniFile& i
|
||||
|
||||
void BGAnimation::LoadFromAniDir( const CString &_sAniDir, bool bGeneric )
|
||||
{
|
||||
Unload();
|
||||
DeleteAllChildren();
|
||||
|
||||
if( _sAniDir.empty() )
|
||||
return;
|
||||
|
||||
@@ -16,8 +16,6 @@ public:
|
||||
BGAnimation();
|
||||
virtual ~BGAnimation();
|
||||
|
||||
void Unload();
|
||||
|
||||
void LoadFromAniDir( const CString &sAniDir, bool bGeneric=true );
|
||||
void LoadFromNode( const CString& sDir, const XNode* pNode );
|
||||
virtual Actor *Copy() const;
|
||||
|
||||
Reference in New Issue
Block a user