mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +02:00
- fix the tween bug by truncating after 6 decimals
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user