- add debug statement to track tween bug

This commit is contained in:
Mark Vejvoda
2011-07-18 23:46:11 +00:00
parent a388c92be6
commit 732b44833b

View File

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