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
@@ -153,12 +153,9 @@ void ActorScroller::LoadFromNode( const CString &sDir, const XNode *pNode )
pNode->GetAttrValue( "QuantizePixels", m_fQuantizePixels );
}
void ActorScroller::Update( float fDeltaTime )
void ActorScroller::UpdateInternal( float fDeltaTime )
{
ActorFrame::Update( fDeltaTime );
if( m_fHibernateSecondsLeft > 0 )
return; // early abort
ActorFrame::UpdateInternal( fDeltaTime );
/* If we have no children, the code below will busy loop. */
if( !m_SubActors.size() )