From f542ce36e4175a5a119d28945c906b202fd28b73 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 31 Aug 2011 16:12:02 +0000 Subject: [PATCH] - commented assert and added more debug info when tween is invalid --- source/shared_lib/sources/graphics/particle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/shared_lib/sources/graphics/particle.cpp b/source/shared_lib/sources/graphics/particle.cpp index b48adfb5a..ddb39d684 100644 --- a/source/shared_lib/sources/graphics/particle.cpp +++ b/source/shared_lib/sources/graphics/particle.cpp @@ -506,8 +506,8 @@ void GameParticleSystem::setTween(float relative,float absolute) { } } if(tween < 0.0f || tween > 1.0f) { - printf("In [%s::%s Line: %d] ERROR setting tween to [%f]\n",__FILE__,__FUNCTION__,__LINE__,tween); - assert(tween >= 0.0f && tween <= 1.0f); + printf("In [%s::%s Line: %d] WARNING setting tween to [%f] clamping tween, modelCycle [%f] absolute [%f] relative [%f]\n",__FILE__,__FUNCTION__,__LINE__,tween,modelCycle,absolute,relative); + //assert(tween >= 0.0f && tween <= 1.0f); } tween= clamp(tween, 0.0f, 1.0f);