rename variables

This commit is contained in:
Chris Danford
2003-10-24 08:49:48 +00:00
parent 8d6d471ad7
commit d95785d3c6
2 changed files with 9 additions and 7 deletions
+8 -6
View File
@@ -63,7 +63,7 @@ void BGAnimationLayer::Init()
Unload();
m_fRepeatCommandEverySeconds = -1;
m_fSecondsUntilRepeatCommand = 0;
m_fSecondsUntilNextCommand = 0;
m_fUpdateRate = 1;
m_fFOV = -1; // no change
m_bLighting = false;
@@ -535,7 +535,7 @@ void BGAnimationLayer::LoadFromIni( CString sAniDir, CString sLayer )
CLAMP( m_Type, (Type)0, TYPE_INVALID );
ini.GetValue( sLayer, "Command", m_sOnCommand );
ini.GetValue( sLayer, "CommandRepeatSeconds", m_fRepeatCommandEverySeconds );
m_fSecondsUntilRepeatCommand = m_fRepeatCommandEverySeconds;
m_fSecondsUntilNextCommand = m_fRepeatCommandEverySeconds;
ini.GetValue( sLayer, "OffCommand", m_sOffCommand );
ini.GetValue( sLayer, "FOV", m_fFOV );
ini.GetValue( sLayer, "Lighting", m_bLighting );
@@ -930,12 +930,14 @@ void BGAnimationLayer::Update( float fDeltaTime )
if( m_fRepeatCommandEverySeconds != -1 ) // if repeating
{
m_fSecondsUntilRepeatCommand -= fDeltaTime;
if( m_fSecondsUntilRepeatCommand <= 0 )
m_fSecondsUntilNextCommand -= fDeltaTime;
if( m_fSecondsUntilNextCommand <= 0 )
{
for( unsigned i=0; i<m_pActors.size(); i++ )
m_pActors[i]->Command( m_sOnCommand );
m_fSecondsUntilRepeatCommand += m_fRepeatCommandEverySeconds;
{
m_pActors[i]->Command( m_sOnCommand );
}
m_fSecondsUntilNextCommand += m_fRepeatCommandEverySeconds;
}
}
}
+1 -1
View File
@@ -95,7 +95,7 @@ protected:
CString m_sOnCommand;
CString m_sOffCommand;
float m_fRepeatCommandEverySeconds; // -1 = no repeat
float m_fSecondsUntilRepeatCommand;
float m_fSecondsUntilNextCommand;
float m_fUpdateRate; // set by GainingFocus
float m_fFOV; // -1 = no change
bool m_bLighting;