Make sure transitions are always [0..1]. (The fact that this wasn't the

case became a problem due to lack of color clamping; this seems the
right thing to do anyway.)
This commit is contained in:
Glenn Maynard
2002-11-13 02:19:01 +00:00
parent 08c0dcacce
commit 42ddf7e470
+1 -1
View File
@@ -36,6 +36,7 @@ void Transition::Update( float fDeltaTime )
case opening_left:
case closing_right:
case closing_left:
m_fPercentThroughTransition += fDeltaTime/m_fTransitionTime;
if( m_fPercentThroughTransition > 1.0f ) // the wipe is over
{
@@ -55,7 +56,6 @@ void Transition::Update( float fDeltaTime )
SCREENMAN->SendMessageToTopScreen( m_MessageToSendWhenDone, 0 );
}
m_fPercentThroughTransition += fDeltaTime/m_fTransitionTime;
break;
}
}