commented debug function no longer exists

fold out a conditional (cosmetic)
This commit is contained in:
Glenn Maynard
2002-10-16 00:28:01 +00:00
parent 1d3d8524de
commit 74d7f20479
+2 -9
View File
@@ -166,14 +166,12 @@ bool Sprite::LoadTexture( CString sTexturePath, bool bForceReload, int iMipMaps,
void Sprite::Update( float fDeltaTime ) void Sprite::Update( float fDeltaTime )
{ {
//PrintDebugInfo();
Actor::Update( fDeltaTime ); // do tweening Actor::Update( fDeltaTime ); // do tweening
if( !m_bIsAnimating )
return;
// update animation // update animation
if( m_bIsAnimating )
{
m_fSecsIntoState += fDeltaTime; m_fSecsIntoState += fDeltaTime;
if( m_fSecsIntoState > m_fDelay[m_iCurState] ) // it's time to switch frames if( m_fSecsIntoState > m_fDelay[m_iCurState] ) // it's time to switch frames
@@ -187,11 +185,6 @@ void Sprite::Update( float fDeltaTime )
} }
}
void Sprite::DrawPrimitives() void Sprite::DrawPrimitives()
{ {
if( m_pTexture == NULL ) if( m_pTexture == NULL )