- try to see if this helps with the tween bug

This commit is contained in:
Mark Vejvoda
2011-07-19 00:17:32 +00:00
parent 732b44833b
commit ae6b085d7a

View File

@@ -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++)