From 42ddf7e47028d3b574f420f9a7d06ebf0b6180f7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 13 Nov 2002 02:19:01 +0000 Subject: [PATCH] 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.) --- stepmania/src/Transition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/Transition.cpp b/stepmania/src/Transition.cpp index fb84e229fb..3e9cdf72ef 100644 --- a/stepmania/src/Transition.cpp +++ b/stepmania/src/Transition.cpp @@ -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; } }