From a047366a731ca316660b21eb9d2ef49d2a307187 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 4 Jun 2004 05:44:51 +0000 Subject: [PATCH] better assert --- stepmania/src/Actor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index 3383f05987..f85c7f4b2c 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -117,7 +117,7 @@ void Actor::BeginDraw() // set the world matrix and calculate actor properties bool bBlinkOn = fPercentThroughEffect > 0.5f; float fPercentBetweenColors = sinf( (fPercentThroughEffect + 0.25f) * 2 * PI ) / 2 + 0.5f; - ASSERT( fPercentBetweenColors >= 0 && fPercentBetweenColors <= 1 ); + ASSERT_M( fPercentBetweenColors >= 0 && fPercentBetweenColors <= 1, ssprintf("%f",fPercentBetweenColors) ); float fOriginalAlpha = m_tempState.diffuse[0].a; int i;