From ae6b085d7a1d16b3b04659856be458f5d727ef26 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Tue, 19 Jul 2011 00:17:32 +0000 Subject: [PATCH] - try to see if this helps with the tween bug --- source/shared_lib/sources/graphics/particle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/shared_lib/sources/graphics/particle.cpp b/source/shared_lib/sources/graphics/particle.cpp index e3bbd9c9e..a81889069 100644 --- a/source/shared_lib/sources/graphics/particle.cpp +++ b/source/shared_lib/sources/graphics/particle.cpp @@ -507,8 +507,9 @@ void GameParticleSystem::setTween(float relative,float absolute) { } if(tween < 0.0f || tween > 1.0f) { printf("ERROR setting tween to [%f]\n",tween); + assert(tween >= 0.0f && tween <= 1.0f); } - assert(tween >= 0.0f && tween <= 1.0f); + tween= clamp(tween, 0.0f, 1.0f); } for(Children::iterator it= children.begin(); it != children.end(); it++)