Fix BGAnimation lengths; simplify.
This commit is contained in:
@@ -65,9 +65,6 @@ void BGAnimation::LoadFromAniDir( CString sAniDir )
|
||||
IniFile ini(sPathToIni);
|
||||
ini.ReadFile();
|
||||
|
||||
m_fLengthSeconds = 10;
|
||||
ini.GetValueF( "BGAnimation", "LengthSeconds", m_fLengthSeconds );
|
||||
|
||||
unsigned i;
|
||||
for( i=0; i<MAX_LAYERS; i++ )
|
||||
{
|
||||
@@ -80,7 +77,7 @@ void BGAnimation::LoadFromAniDir( CString sAniDir )
|
||||
m_Layers.push_back( pLayer );
|
||||
}
|
||||
|
||||
if(m_fLengthSeconds == -1)
|
||||
if( !ini.GetValueF( "BGAnimation", "LengthSeconds", m_fLengthSeconds ) )
|
||||
{
|
||||
m_fLengthSeconds = 0;
|
||||
for( i=0; i < m_Layers.size(); i++ )
|
||||
|
||||
Reference in New Issue
Block a user