From 732b44833bc5989f1178f087cdddd8a284d7c75d Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Mon, 18 Jul 2011 23:46:11 +0000 Subject: [PATCH] - add debug statement to track tween bug --- source/shared_lib/sources/graphics/particle.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/shared_lib/sources/graphics/particle.cpp b/source/shared_lib/sources/graphics/particle.cpp index 7e15785cf..e3bbd9c9e 100644 --- a/source/shared_lib/sources/graphics/particle.cpp +++ b/source/shared_lib/sources/graphics/particle.cpp @@ -505,6 +505,9 @@ void GameParticleSystem::setTween(float relative,float absolute) { tween /= modelCycle; } } + if(tween < 0.0f || tween > 1.0f) { + printf("ERROR setting tween to [%f]\n",tween); + } assert(tween >= 0.0f && tween <= 1.0f); tween= clamp(tween, 0.0f, 1.0f); }