Split Update into Update and UpdateInternal so that every class doesn't need to early abort in Update when hibernating

This commit is contained in:
Chris Danford
2005-06-11 10:32:58 +00:00
parent 3b3408d11e
commit 98784d3fb5
11 changed files with 33 additions and 28 deletions
+2 -5
View File
@@ -556,12 +556,9 @@ void BGAnimationLayer::LoadFromNode( const CString& sDir, const XNode* pNode )
}
}
void BGAnimationLayer::Update( float fDeltaTime )
void BGAnimationLayer::UpdateInternal( float fDeltaTime )
{
if( m_fHibernateSecondsLeft > 0 )
return;
ActorFrame::Update( fDeltaTime );
ActorFrame::UpdateInternal( fDeltaTime );
fDeltaTime *= m_fUpdateRate;