From f01621e9350e6eb27583993817e937c2488ffea8 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 10 Jan 2004 02:56:04 +0000 Subject: [PATCH] tweak effects for music timing source --- stepmania/src/Actor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index fe88932b3e..61063e3e31 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -103,8 +103,8 @@ void Actor::BeginDraw() // set the world matrix and calculate actor properties fPercentThroughEffect += m_fEffectPerfectOffset; fPercentThroughEffect = fmodfp( fPercentThroughEffect, 1 ); - bool bBlinkOn = fPercentThroughEffect > 0.5f; - float fPercentBetweenColors = (fPercentThroughEffect==0) ? 0 : (sinf( fPercentThroughEffect * 2 * PI ) / 2 + 0.5f); + bool bBlinkOn = fPercentThroughEffect < 0.5f; + float fPercentBetweenColors = sinf( (fPercentThroughEffect + 0.25f) * 2 * PI ) / 2 + 0.5f; ASSERT( fPercentBetweenColors >= 0 && fPercentBetweenColors <= 1 ); float fOriginalAlpha = m_tempState.diffuse[0].a;