Fix BGAnimation lengths; simplify.

This commit is contained in:
Glenn Maynard
2003-07-06 10:26:22 +00:00
parent 3a9449a5ee
commit f8c030e332
+1 -4
View File
@@ -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++ )