- commented assert and added more debug info when tween is invalid

This commit is contained in:
Mark Vejvoda
2011-08-31 16:12:02 +00:00
parent a7e08e3b55
commit f542ce36e4

View File

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