- fix the tween bug by truncating after 6 decimals

This commit is contained in:
Mark Vejvoda
2011-09-10 03:57:51 +00:00
parent b8a8e3b519
commit cd321c0c77

View File

@@ -505,6 +505,8 @@ void GameParticleSystem::setTween(float relative,float absolute) {
tween /= modelCycle;
}
}
truncateDecimal<float>(tween);
if(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);