BGAnimations layer numbers need not be consecutive
This commit is contained in:
@@ -69,7 +69,7 @@ void BGAnimation::LoadFromAniDir( CString sAniDir )
|
|||||||
ini.GetValueF( "BGAnimation", "LengthSeconds", m_fLengthSeconds );
|
ini.GetValueF( "BGAnimation", "LengthSeconds", m_fLengthSeconds );
|
||||||
|
|
||||||
unsigned i;
|
unsigned i;
|
||||||
for( i=0; MAX_LAYERS; i++ )
|
for( i=0; i<MAX_LAYERS; i++ )
|
||||||
{
|
{
|
||||||
CString sLayer = ssprintf("Layer%d",i+1);
|
CString sLayer = ssprintf("Layer%d",i+1);
|
||||||
const IniFile::key* pKey = ini.GetKey( sLayer );
|
const IniFile::key* pKey = ini.GetKey( sLayer );
|
||||||
|
|||||||
Reference in New Issue
Block a user